Created attachment 2872 [details]
Simple test program that ouputs results of calling Math.Pow
Mono Version 22.214.171.124ubuntu2.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 126.96.36.199 (Debian 188.8.131.52-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 ***
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 Links.
Create a new report for Bug 8250 on Developer
Community or GitHub if you have new information to add and do not yet see a matching
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
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.