peterolson / BigRational.js

An arbitrary length rational number library for Javascript
The Unlicense
46 stars 15 forks source link

bigRat constructor does not like capital "E" exponents. #11

Closed kgierach closed 10 years ago

kgierach commented 10 years ago

The bigRat() constructor throws an Error when I pass in a string like this:

bigRat( "9.999701656077919E307" );

but it doesn't seem to mind if the "E" is a lower case "e" like this:

bigRat( "9.999701656077919e307" );

peterolson commented 10 years ago

This should be fixed now. I'll fix the same issue in the bigInteger library.