G
Guest
Hi everyone!
I'm using greece - greek in my control panel's regional options,
and so, my decimal point is the comma (,),
while it is the dot (.) for the sql server db,
however, I'm facing trouble when I need to parse the sql server decimal as
an asp.net double!
For example:
The first culture has problems with the dot (.),
while the second has problems with the comma (,)!
How on earth am I supposed to do this thing?
Thanks in advance!
I'm using greece - greek in my control panel's regional options,
and so, my decimal point is the comma (,),
while it is the dot (.) for the sql server db,
however, I'm facing trouble when I need to parse the sql server decimal as
an asp.net double!
For example:
Code:
?Double.Parse("0.03", New System.Globalization.CultureInfo("el-gr"))
3.0
?Double.Parse("0.03", New System.Globalization.CultureInfo("en-US"))
0.03
?Double.Parse("1,0", New System.Globalization.CultureInfo("el-gr"))
1.0
?Double.Parse("1,0", New System.Globalization.CultureInfo("en-US"))
10.0
The first culture has problems with the dot (.),
while the second has problems with the comma (,)!
How on earth am I supposed to do this thing?
Thanks in advance!