From 1c71b3121033b85f4367bc887c8d2c4576ef0232 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 2 May 2022 01:08:22 +0800 Subject: [PATCH] Document zero padding and left alignment in format string (#5790) --- tutorials/scripting/gdscript/gdscript_format_string.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tutorials/scripting/gdscript/gdscript_format_string.rst b/tutorials/scripting/gdscript/gdscript_format_string.rst index e9e48bb99..199cd0756 100644 --- a/tutorials/scripting/gdscript/gdscript_format_string.rst +++ b/tutorials/scripting/gdscript/gdscript_format_string.rst @@ -134,8 +134,9 @@ conditions. | ``+`` | In number specifiers, **show + sign** if positive. | +---------+-------------------------------------------------------------------+ | Integer | Set **padding**. Padded with spaces or with zeroes if integer | -| | starts with ``0`` in an integer placeholder. When used after | -| | ``.``, see ``.``. | +| | starts with ``0`` in an integer or real number placeholder. | +| | The leading ``0`` is ignored if ``-`` is present. | +| | When used after ``.``, see ``.``. | +---------+-------------------------------------------------------------------+ | ``.`` | Before ``f``, set **precision** to 0 decimal places. Can be | | | followed up with numbers to change. Padded with zeroes. |