I need a specific format for a float number: (sign)xx.dd when trying to set a string.format for thiss format I get odd results.
h= 5.127 --(it should beconverted to +05.13)
print(string.format("%+05.2f",h))
--> 05.13
print(string.format("%+06.2f",h))
--> 005.13
h= -5.127 --(it should beconverted to -05.13)
print(string.format("%05.2f",h))
--> -5.13
print(string.format("%06.2f",h))
--> 0-5.13
Of course, I have an easy workaround, but I think that there is something wrong in this build.
build created on 2018-04-09 15:12 powered by Lua 5.1.4 on SDK 2.2.1(cfd48f3)
BR, eHc