peterolson / BigRational.js

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

toDecimal drops sign #18

Closed Hypercubed closed 8 years ago

Hypercubed commented 8 years ago

Unless I am missing something the toDecimal method drops the sign:

bigRat("-55", "75").toDecimal(); // returns '0.73333333333' should be '-0.73333333333'