Skip to content
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

Math.Sin(double) returns different results between Windows and Linux #5758

Closed
vsevolodp opened this issue Dec 16, 2020 · 1 comment
Closed

Comments

@vsevolodp
Copy link

Math.Sin returns different results on Linux as compared to Windows.

I have only one sample at hands. It is consistent across different machines.

Math.Sin(0.832013069853759223981626291788415983319282531738281250000000).ToString("f80") shows different results

Os Value
Windows "0.73928844702542961808688914970844052731990814208984375000000000000000000000000000"
Linux "0.73928844702542972910919161222409456968307495117187500000000000000000000000000000"

System.Environment.Version = 5.0.0

System.Runtime.InteropServices.RuntimeInformation.OSDescription
"Linux 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020"
"Microsoft Windows 10.0.19042"

@vsevolodp
Copy link
Author

This issue was discussed in runtime repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant