Best way to parse float?
Posted
by boris callens
on Stack Overflow
See other posts from Stack Overflow
or by boris callens
Published on 2008-09-29T07:23:43Z
Indexed on
2010/05/09
4:18 UTC
Read the original article
Hit count: 426
What is the best way to parse a float in CSharp? I know about TryParse, but what I'm particularly wondering about is dots, commas etc.
I'm having problems with my website. On my dev server, the ',' is for decimals, the '.' for separator. On the prod server though, it is the other way round. How can I best capture this?
© Stack Overflow or respective owner