Skip to content

Instantly share code, notes, and snippets.

@jerone
Last active December 11, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerone/4612335 to your computer and use it in GitHub Desktop.
Save jerone/4612335 to your computer and use it in GitHub Desktop.
C# float differences
/// C# float differences:
-3.40282347E+38 // float.MinValue
-3.402823E+38 // database
float.MinValue == float.Parse(float.MinValue.ToString()) // false
float.MinValue == Convert.ToSingle(float.MinValue) // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment