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

README.md: Added additional C# implementation #210

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

NightOwl888
Copy link
Contributor

We did a port of the Java Ryu implementation to C# in J2N.

Ryu formatting is exposed through the "J" (default) format of the ToString() method overloads on the following public classes.

The implementation uses the Ryu algorithm to provide a round-trippable format/parse that consistently works from .NET Framework 4.0 to .NET 6+. .NET has floating point rounding bugs which weren't patched until .NET Core 3.0, but J2N provides consistent round-trip behavior across all target frameworks with the help of RyuDouble and RyuSingle.

@ulfjack ulfjack merged commit 75d5a85 into ulfjack:master Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants