J
Jeff
Hey
..NET 2.0
I'm parsing an XML file and read an attribute value out of a node. This
value ( value="0.0000") am I trying to convert to a decimal:
decimal _value = Convert.ToDecimal(reader.GetAttribute("value").ToString());
The code above gives this error:
"Input string was not in the correct format"
The regional settings is Norwegian on the computer I run this app on ...
In Norway comma are used instead of period to separate the decimals from a
number... like for example in US 0.0000 would in Norwegian become 0,0000
any suggestions on how to fix this?
..NET 2.0
I'm parsing an XML file and read an attribute value out of a node. This
value ( value="0.0000") am I trying to convert to a decimal:
decimal _value = Convert.ToDecimal(reader.GetAttribute("value").ToString());
The code above gives this error:
"Input string was not in the correct format"
The regional settings is Norwegian on the computer I run this app on ...
In Norway comma are used instead of period to separate the decimals from a
number... like for example in US 0.0000 would in Norwegian become 0,0000
any suggestions on how to fix this?