Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 2872 [details]
Simple test program that ouputs results of calling Math.Pow
Mono Version 188.8.131.52ubuntu2.1
Running on BeagleBone platform.
Calling Math.Pow() returns incorrect results, like this:
Math.Pow(10, -5) results. Expected: 1E-05 Actual: 0.00891799479722977
Math.Pow(10, 5) results. Expected: 100000 Actual: 0.257413864135742
Math.Pow(2, 4) results. Expected: 16 Actual: 0.263913869857788
Math.Pow(2, 8) results. Expected: 256 Actual: 1
This works as expected on the x86 version 184.108.40.206 (Debian 220.127.116.11-1~dhx1~lucid1).
Probably a dup of:
Ah. Yes, it is in fact using hardfp. Didn't know that caused issues with mono.
I'm sure that's the cause.
*** This bug has been marked as a duplicate of bug 7938 ***