Maganty Rushyendra and Rémi Verschelde
6344b75453
Enable zero padding with float specifier for format strings
...
Godot currently supports zero padding for integers, octals and
hexadecimals when using format strings, but not for floats.
This commit adds support for zero padding for floats, thus ensuring
consistent behavior for all types, and making Godot's format specifiers'
behavior closer to c's `printf()`.
Before: `print("<%07.2f>" % -0.2345)` prints `< -0.23>`.
Now: `print("<%07.2f>" % -0.2345)` prints `<-000.23>`.
`print("<%7.2f>" % -0.2345)` prints `< -0.23>`.
(cherry picked from commit b7d835d9ca )
2020-06-11 09:41:37 +02:00
..
2020-06-10 15:30:52 +02:00
2020-06-10 15:30:52 +02:00
2020-06-10 15:30:52 +02:00
2020-06-11 09:41:13 +02:00
2020-06-10 15:30:52 +02:00
2020-05-06 23:28:44 +02:00
2020-05-06 23:28:44 +02:00
2020-01-07 00:08:49 +01:00
2020-01-03 14:17:05 +01:00
2020-01-26 12:08:16 +01:00
2020-01-28 12:41:04 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-06-10 15:30:52 +02:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-04-16 11:46:00 +02:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-04-16 12:47:19 +02:00
2020-04-16 12:47:19 +02:00
2020-01-01 11:16:22 +01:00
2020-01-24 17:19:57 +01:00
2020-01-24 17:19:57 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-06-10 15:30:51 +02:00
2020-05-20 15:38:20 +03:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-06-10 15:30:52 +02:00
2020-01-01 11:16:22 +01:00
2020-03-25 11:38:53 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-02 21:37:26 +08:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-05-20 11:35:28 +02:00
2020-04-23 13:51:02 +02:00
2020-04-27 13:07:52 +02:00
2020-06-10 20:16:10 +02:00
2020-04-23 13:51:02 +02:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-06-04 11:07:54 +02:00
2020-04-20 13:48:02 +02:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-02-25 11:35:47 +01:00
2020-01-01 11:16:22 +01:00
2020-06-10 15:30:52 +02:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-06-10 15:30:52 +02:00
2020-05-05 17:53:47 +02:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00
2020-01-02 21:37:26 +08:00
2020-01-01 11:16:22 +01:00
2020-06-11 09:41:37 +02:00
2020-01-01 11:16:22 +01:00
2020-05-25 16:32:25 +02:00
2020-04-27 13:07:52 +02:00
2020-06-10 15:30:52 +02:00
2020-01-01 11:16:22 +01:00
2020-04-30 10:23:30 +02:00
2020-04-27 13:07:52 +02:00
2020-01-02 15:44:41 +01:00
2020-01-06 13:13:17 +01:00
2020-01-01 11:16:22 +01:00
2020-01-01 11:16:22 +01:00