K
K Viltersten
I've got errors when parsing the string
"1.234e+002" to a double. I used the
invariant culture to endure that the
comma is not an issue and i pucked the
styles of the number to be float, to
ensure that scientific format is OK.
double dbl = double.Parse(
"1,34e+002",
NumberStyles.Float,
CultureInfo.InvariantCulture);
Still, i get errors. The error message
is rather undesciptive, telling me only
that the format of the string is wrong.
Of course, i also tried the following,
just to make sure it's not THAT simple.
double dbl = double.Parse(
"1.34e+002",
NumberStyles.Float);
Still, to no avail. What exactly is
wrong here? How do i remedy it?
"1.234e+002" to a double. I used the
invariant culture to endure that the
comma is not an issue and i pucked the
styles of the number to be float, to
ensure that scientific format is OK.
double dbl = double.Parse(
"1,34e+002",
NumberStyles.Float,
CultureInfo.InvariantCulture);
Still, i get errors. The error message
is rather undesciptive, telling me only
that the format of the string is wrong.
Of course, i also tried the following,
just to make sure it's not THAT simple.
double dbl = double.Parse(
"1.34e+002",
NumberStyles.Float);
Still, to no avail. What exactly is
wrong here? How do i remedy it?