Files
godot/core
Maganty RushyendraandRé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-05-06 23:28:44 +02:00
2020-05-06 23:28:44 +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-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-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