You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
n := 0.1
println('${n:36.2f}')
println('${n:37.2f}')
println('${n:38.2f}')
What did you expect to see?
0.10
0.10
0.10
0.10
What did you see instead?
0.10
.10
10
0
After a certain point, the padding character starts to overwrite the formatted float value and corrupt the expected output. I can't reproduce this with integers, just floats.
I think this is likely related to the hardcoded length 32 output buffer in format_fl; the tipping point where the bug starts to appear is at 32 + '0.10'.len + 1.
The text was updated successfully, but these errors were encountered:
dsemi
added
the
Bug
This tag is applied to issues which reports bugs.
label
Jan 19, 2022
V version: 0.2.4 d826317
OS: Linux
What did you do?
What did you expect to see?
What did you see instead?
After a certain point, the padding character starts to overwrite the formatted float value and corrupt the expected output. I can't reproduce this with integers, just floats.
I think this is likely related to the hardcoded length 32 output buffer in
format_fl
; the tipping point where the bug starts to appear is at32 + '0.10'.len + 1
.The text was updated successfully, but these errors were encountered: