Skip to content

Make epsilon great again #28054

Closed
Closed
@markshevchenko

Description

Double.Epsilon and Single.Epsilon both have invalid values since .NET 1.0.

Details here: https://social.msdn.microsoft.com/Forums/azure/en-US/23c75283-c3c3-41bf-93d9-6b274593c4ed/singleepsilon-isnt

Both properties have a much lower value than they should have. So, let's make these epsilons great again.

I suppose add new constants with valid values:

Single.MachineEpsilon = 1.192092896e–07F;
Double.MachineEpsilon = 2.2204460492503131e–016

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions