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
I understand floating point numbers are not 100% accurate but for negative numbers that seems to be very wrong
The text was updated successfully, but these errors were encountered:
divanburger
changed the title
strconv returns incorrect values for negative numbers
strconv.parse_f64_prefix() returns incorrect values for negative numbers
Oct 20, 2024
Context
Odin: dev-2024-10:9f609dd74
OS: openSUSE Tumbleweed, Linux 6.11.0-1-default
CPU: AMD Ryzen 9 5900X 12-Core Processor
RAM: 31989 MiB
Backend: LLVM 18.1.8
Expected Behavior
When running the following Odin program, using
odin run .
:I expect the output to be:
Current Behavior
Instead I get:
I understand floating point numbers are not 100% accurate but for negative numbers that seems to be very wrong
The text was updated successfully, but these errors were encountered: