This commit is contained in:
Andreas Rumpf 2021-06-30 12:36:24 +02:00 • committed by GitHub
commit 19263f2775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -54,4 +54,10 @@ doAssert 9999999999999999.0 == "9999999999999999.0".parseFloat
doAssert 0.999999999999999 == ".999999999999999".parseFloat
doAssert 0.9999999999999999 == ".9999999999999999".parseFloat
# bug #18400
var s = [-13.888888'f32]
assert $s[0] == "-13.888888"
var x = 1.23456789012345'f32
assert $x == "1.2345679"
echo("passed all tests.")