C
Cralis
Hi guys,
I have a winforms scree, which allows a user to enter a decimal GPS
position, such as -27.34212
Problem is, in Romainia, they would enter -27,34212, and in the US, it
would be -27.34212
So what I am doing is handling all float with the Invarient type, and
they all get treated as US style. However, when thre's user input ...
how should I handle this?
At the moment, I take the EditBox.Text and di a string.replace on the
',', and replace with a '.', but that seems very dodgy. Is there a
better way for this?
I have a winforms scree, which allows a user to enter a decimal GPS
position, such as -27.34212
Problem is, in Romainia, they would enter -27,34212, and in the US, it
would be -27.34212
So what I am doing is handling all float with the Invarient type, and
they all get treated as US style. However, when thre's user input ...
how should I handle this?
At the moment, I take the EditBox.Text and di a string.replace on the
',', and replace with a '.', but that seems very dodgy. Is there a
better way for this?