G
GaryDean
I reading through an Excel xml file reading numbers and putting them into
columns in a grid. I come upon this file (that excel can read just fine)
where I encounter:
<Cell ss:StyleID="s28"><Data
ss:Type="Number">8.3000000000000004E-2</Data></Cell>
When I try to move that number into a decimal colume an exception is thrown
saying...
Input string was not in a correct format.Couldn't store
<8.3000000000000004E-2> in Labor Column. Expected type is Decimal.
After reading hundreds of such files this is the first one I have
encountered with the "E-2" ending.
Since Excel can read it, I'm thinking that it may somehow be valid and I
have to find a treatment for it.
columns in a grid. I come upon this file (that excel can read just fine)
where I encounter:
<Cell ss:StyleID="s28"><Data
ss:Type="Number">8.3000000000000004E-2</Data></Cell>
When I try to move that number into a decimal colume an exception is thrown
saying...
Input string was not in a correct format.Couldn't store
<8.3000000000000004E-2> in Labor Column. Expected type is Decimal.
After reading hundreds of such files this is the first one I have
encountered with the "E-2" ending.
Since Excel can read it, I'm thinking that it may somehow be valid and I
have to find a treatment for it.