Skip to content

Highlight special implementation in remarks #10090

Open
@halmaia

Description

@halmaia

The .NET’s DegreesToRadians uses a special implementation ((degrees * Pi) / 180.0) which result could deviate from the widespread 0.017453292519943295 * degrees’ version (especially in the case of extremely small numbers). For example converting 1.2345678912345678e-40° to radians in Python™ returns 2.154727454144645e-42. In .NET the result is 2.1547274541446447E-42. The difference is not big at all but could break tests. Why did the .NET team choose this implementation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.NumericsuntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions