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

Floating-point numbers with five or more digits after decimal separator #145

Open
jlduran opened this issue Jul 17, 2017 · 0 comments
Open

Comments

@jlduran
Copy link
Collaborator

jlduran commented Jul 17, 2017

Some floating-point numbers with five or more digits after the decimal separator are expressed in scientific notation:

irb(main):001:0> 0.00001
=> 1.0e-05

This produces an invalid to_words conversion:

irb(main):001:0> require 'numbers_and_words'
=> true
irb(main):002:0> 0.00001.to_words
=> "one"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant