Преглед на файлове

Document zero padding and left alignment in format string (#5790)

Haoyu Qiu преди 3 години
родител
ревизия
1c71b31210
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      tutorials/scripting/gdscript/gdscript_format_string.rst

+ 3 - 2
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.           |