-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numeric text string being read as float #87
Comments
In general, Excel prefers numbers. |
Hi, tried the str function bit that just gives the floating point version in quotes! |
I've tested in Excel. By default, number string is stored as number. |
"2014" in this file is treated as string. |
I noticed that when reading a 10-digit integer I would also get a floating-point number. I decided on a lark to format it using |
I ran into this also, and found an SO post, which points to org.apache.poi.ss.usermodel.DataFormatter.formatCellValue, which seems useful, based on the javadoc, if you want a string that looks the same as in Excel:
|
Please submit a PR if it would be useful to provide a helper function in the Clojure library that wraps a call to this formatter. |
Hi,
Probably a newbie question:
I have a cell set as Text, say 9A5655897 then when I read with select-columns I get "9A5655897"
But if I have 91371672 then I get 9.13712672E8
Is there a way of forcing a read as a string?
I am on Mac OS if that makes a difference.
Thanks
The text was updated successfully, but these errors were encountered: