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.PI values are inconsistent #2043

Open
ladeak opened this issue Mar 16, 2019 · 0 comments
Open

Math.PI values are inconsistent #2043

ladeak opened this issue Mar 16, 2019 · 0 comments
Labels
area-System.Runtime Pri3 Indicates issues/PRs that are low priority untriaged New issue has not been triaged by the area owner

Comments

@ladeak
Copy link

ladeak commented Mar 16, 2019

Documentation says at the top:
public const double PI = 3.14159265358979;

In the remarks

The value of this field is 3.1415926535897931.

While in the source it is really this value:

public const double PI = 3.14159265358979323846;

And just too add more to it:

> Console.WriteLine(((Math.PI - 3.14159265358979)) > Double.Epsilon)
True
> Console.WriteLine(((Math.PI - 3.141592653589793)) > Double.Epsilon)
False
@dotnet-bot dotnet-bot added the untriaged New issue has not been triaged by the area owner label Mar 16, 2019
@PRMerger13 PRMerger13 added the Pri3 Indicates issues/PRs that are low priority label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime Pri3 Indicates issues/PRs that are low priority untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

4 participants