Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

Commented Unassigned: Numeric strings are converted to numbers [13688]

$
0
0
When reading an .xlsx sheet with IExcelDataReader.AsDataSet strings that only contain numbers are converted to decimals
like 0100 becomes 100.0
If I use ' to force a string it works.

I would be greatful for a quick update.
Comments: ** Comment from web user: LandLubberNL **

The data is stored in another cell as '00100 and then collected onto this sheet by means of a lookup. The contents of the cell is 000100 (notice the missing quote). The reader provides me with 100.0, so I can't tell whether it was 100 or 0100 or 00100, which in this application is significant.

Other than that the reader works great.


Viewing all articles
Browse latest Browse all 448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>