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
MrC Floating point division broken #32
Comments
|
Could be worse... SC compiles it down to 0.807692 or 062500.000000, depending on if it's a compile time constant or not. |
|
Aha! Not just me then |
|
I haven't looked into it much, but Petter recently committed a fix for 64-bit division in the WinFellow code - you might try and see if this fixes it? |
|
I can confirm that the above patch does not fix the issue here, from what I can tell. |
|
I fixed some problems with the SANE FX2DEC formatting which should fix this issue (but not the 1.0/16.0 = 0.807692 SC issue). |
|
It works! Safe to close this on my end. Thanks! |
Hey there! I'm seeing a reproducible MrC bug with mpw 0.8.0/MrC C Compiler 4.1.0f1c1; floating point division does not work properly.
test.c
Compiling
With the above, running MrC on real hardware emits code that prints '0.062500'. Running MrC under mpw prints '625.000000'.
I am running a slightly older build of mpw so my apologies if you're already on top of this! =)
The text was updated successfully, but these errors were encountered: