Skip to content

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

Description

@vsevolodp

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions