Scientific notation inconsistency
mildred opened this issue · 3 comments
mildred commented
3E-5
is not correctly evaluated because it is missing the decimal point. At least, it should error instead of producing the value without the exponent.
3.1.0 :002 > Dentaku::Calculator.new.evaluate('3E-5')
=> 3
3.1.0 :003 > Dentaku::Calculator.new.evaluate('3.0E-5')
=> 0.3e-4
a5-stable commented
rubysolo commented
This should be fixed -- thanks @a5-stable!
mildred commented
Thank you