1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin,strconv: append ".0", to float string representations, to ensure clarity (#16079)

This commit is contained in:
Subhomoy Haldar
2022-10-17 13:41:07 +01:00
committed by GitHub
parent 29b1796791
commit 43b9a716c5
21 changed files with 98 additions and 74 deletions

View File

@@ -425,7 +425,7 @@ fn test_abs_zero() {
ret2 := abs(0.0)
println(ret2)
assert '$ret2' == '0'
assert '$ret2' == '0.0'
}
fn test_floor() {