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
package test import "core:fmt" import "core:math" main :: proc() { k := -0.0 fmt.printfln("abs(-0.0) = %v", math.abs(k)) // abs(-0.0) = -0 }
https://en.wikipedia.org/wiki/Absolute_value https://en.m.wikipedia.org/wiki/Signed_zero https://www.calculatorsoup.com/calculators/algebra/absolute-value-calculator.php
odin run . or odin build .
Odin 2025-01 Windows LLVM 18.1.8
incorrect results bug (possibly?)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
minimal example
provides incorrect answer to absolute value of negative zero, should be +0
https://en.wikipedia.org/wiki/Absolute_value
https://en.m.wikipedia.org/wiki/Signed_zero
https://www.calculatorsoup.com/calculators/algebra/absolute-value-calculator.php
compiler command
odin run . or odin build .
system info
Odin 2025-01
Windows
LLVM 18.1.8
suggested labels
incorrect results
bug (possibly?)
The text was updated successfully, but these errors were encountered: