LarryBattle / Ratio.js

Rational numbers for Javascript
http://larrybattle.github.com/Ratio.js/
MIT License
113 stars 9 forks source link

Bug: Mixed numbers with negative fractions produce wrong result. #10

Closed LarryBattle closed 11 years ago

LarryBattle commented 11 years ago

Test this. Ratio.VERSION == "0.2.7"

console.log( Ratio.parse( "1 1/-2" ).toString() === "1/2" ) console.log( Ratio.parse( "1 1/2" ).toString() === "3/2" )

LarryBattle commented 11 years ago

Fixed with version 0.2.9