godotengine / godotengine/godot-docs

`String.num` now prints trailing zeroes on whole numbers

Open
#10,743 3 comments 2 reactions 0 assignees View on GitHub
area:class reference
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**
4.4-stable

**Issue description:**
In Godot 4.4, Calling `String.num` with an integer/whole number parameter with no second argument returns a String for that number with a trailing ".0". For example, `String.num(42)` returns `"42.0"`. The docs for `String.num` say that trailing zeroes are not printed.
In 4.3, this was correct, and `String.num(42)` returned `"42"`.

**URL to the documentation page:**
https://docs.godotengine.org/en/4.4/classes/class_string.html#class-string-method-num

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.