You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.
Sample for fix:
use Public Shared NumberStyleAnyWithoutAllowThousands as NumberStyles = NumberStyles.Any - NumberStyles.AllowThousands
instead NumberStyles.Any
The text was updated successfully, but these errors were encountered:
AlexanderSemenyak
changed the title
Potential erros in Double.TryParse and Double.Parse with Invariant culture
Potential calculation erros in Double.TryParse and Double.Parse with Invariant culture and NumberStyles.Any
Sep 6, 2019
Issue (example):
Double.Parse("77,65", System.Globalization.NumberStyles.Any, System.Globalization.CultureInfo.InvariantCulture)
return 7765
Cause: System.Globalization.NumberStyles.AllowThousands
https://stackoverflow.com/questions/46109025/c-sharp-double-tryparse-with-invariantculture-returns-unexpected-result
Sample for fix:
use Public Shared NumberStyleAnyWithoutAllowThousands as NumberStyles = NumberStyles.Any - NumberStyles.AllowThousands
instead NumberStyles.Any
The text was updated successfully, but these errors were encountered: