We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$(-0.0) prints as -0.0; should that print as 0.0?
proc main()= var a = -0.0 echo a echo -0 echo $(-0.0) var b = a echo b echo cast[uint](a) static: main() main()
-0.0 0 -0.0 -0.0 9223372036854775808
$
$(a: float)
The text was updated successfully, but these errors were encountered:
It differs in JS backend
proc main()= var a = -0.0 echo a echo -0 echo $(-0.0) var b = a echo b static: main() main()
output:
-0.0 0 -0.0 -0.0 0.0 0 -0.0 0.0
Sorry, something went wrong.
fixed by nim-lang#16505 ; thanks!
No branches or pull requests
$(-0.0) prints as -0.0; should that print as 0.0?
Example
Current Output
Expected Output
Additional information
$
is different$(a: float)
now works consistently in nim js, avoiding printing floats as ints nim-lang/Nim#14134The text was updated successfully, but these errors were encountered: