Skip to content
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

All integers are treated as Float data type by default in .xls #133

Closed
yrmallu opened this issue Jun 2, 2014 · 7 comments
Closed

All integers are treated as Float data type by default in .xls #133

yrmallu opened this issue Jun 2, 2014 · 7 comments

Comments

@yrmallu
Copy link

yrmallu commented Jun 2, 2014

For phone numbers and other fields it's showing Float datatype

undefined method `split' for 99999999.0:Float

@ksugiarto
Copy link

You can change it to Integer actually, can you provide your full problem? I faced the same kind of problem, but now it solved.

@emerson-h
Copy link

There are big changes coming to how typecasting is managed. Stay tuned for updates!

@deivid-rodriguez
Copy link

Same problem here, any progress?

@petertellgren
Copy link

Same problem here too.
P.S. I've seen the promise of changes pertaining to this and similar issues but very little in actual merges or commits. Is there some blocking issue where one can assist or help out in any way?

@grumpit
Copy link

grumpit commented Oct 10, 2014

FWIW this seems to be an issue with the spreadsheet gem, as it's noted right in the README on its page: https://github.com/zdavatz/spreadsheet

@stevendaniels
Copy link
Contributor

While this issue is related to xls support, which has been moved to the roo-xls gem, the behavior still exists in the master branch of Roo.

Fixing the way types are managed would be a big change.

@stevendaniels
Copy link
Contributor

#240 resolves this issue. Add the following to your gemfile to install it.

gem 'roo', git: 'git://github.com/roo-rb/roo.git' 

I will work on publishing a new version of the gem to Rubygems this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants