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
C# string formatting with negative numbers are not working as expected in net5.0 #59570
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
cc: @tannergooding |
This is as expected and fits the IEEE 754 requirements around parsing and formatting floating-point values: https://devblogs.microsoft.com/dotnet/floating-point-parsing-and-formatting-improvements-in-net-core-3-0/ In particular, If you would like to remove the sign, you will need to use a Custom numeric format string and in particular, you'll need to use the a 3 section format. I believe (but have not confirmed) that
|
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsC# string formatting with negative numbers are not working as expected in net5.0
|
@tannergooding Thanks for the explanations. This was very helpful. |
C# string formatting with negative numbers are not working as expected in net5.0
The text was updated successfully, but these errors were encountered: