all groups > dotnet internationalization > april 2008 >
You're in the

dotnet internationalization

group:

how to adapt decimal point to the current culture?


how to adapt decimal point to the current culture? Carlos
4/3/2008 11:27:35 AM
dotnet internationalization:
Hi all,

I have a small app running in a pocket pc that converts a value in a
textbox to
a double. The problem is that when the value is converted in a device that
has
the comma (',') as a decimal point, the value is converted wrongly. i.e.
(1,9 gets converted as 19.0 instead of 1.9). How to make sure that
this value is converted to the proper double value number, and how to test
it successfully?

Thanks,

Carlos.

AddThis Social Bookmark Button