dotnet / dotnet/dotnet-api-docs
Highlight special implementation in remarks
Open
area-System.Numerics
Pri3
untriaged
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.