-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
calc.c 2+0.1 = 2.99999991 #138
Comments
Could you also check more than one decimal placed values? Just rechecked my code and think there might be an issue for more values like |
I'll check this later. PC and laptop (VM) are on a scheduled maintenance (virus scan and malware scan) and its 12:16 AM in my country, plus I have class at 9 later. I have to sleep first. |
So, I accidentally typed |
No |
A pure program error... (Fixed the 0.23 -> 0.5 issue already) |
This issue ism most likely caused by floating point conversions. We need a double to string method... |
Calculating n+0.1 returns n.99999991. Calculating n+0.2 returns n.19999982 (not that far off). Its just weird
The text was updated successfully, but these errors were encountered: