Bug 60044 - Implementations of Math.Exp() and Math.Log() differ between OSes
Summary: Implementations of Math.Exp() and Math.Log() differ between OSes
Alias: None
Product: Runtime
Classification: Mono
Component: JIT ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-10-08 19:18 UTC by pgsinitsyn
Modified: 2017-11-08 23:22 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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.

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.

Related Links:

Description pgsinitsyn 2017-10-08 19:18:46 UTC
Dear all,

I tried this code https://gist.github.com/pgsin/2816cf5b69cd3c9b6b4ccc55ac99c02f.

I got the same result between mono and .net on windows (Microsoft Windows [Version 10.0.15063]), but 1-bit discrepancy between mono on linux (Ubuntu 16.04.2 LTS) vs mono on windows (the same).

Pavel Sinitcyn
Comment 1 pgsinitsyn 2017-10-09 01:25:52 UTC
Math.Log has the same issue - https://goo.gl/Tqydtb
Comment 2 Ludovic Henry 2017-11-08 23:22:03 UTC
Our behaviour matches other runtime on linux and macOS, and it also matches the behaviour of .NET Core. We will then not fix it, and will keep that as a platform-specific behaviour.

Thank you very much for your report