LarryBattle / Ratio.js

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

Subtraction modifies subtrahend Ratio object #43

Closed fpsdev closed 11 years ago

fpsdev commented 11 years ago

var r1 = Ratio(4,5); var r2 = Ratio(1,5); r1.subtract(r2).toString(); //outputs "3/5" correctly r2.toString(); //outputs "-1/5" instead of "1/5"

LarryBattle commented 11 years ago

You're right. That's a bug. I will release a patch this weekend.

LarryBattle commented 11 years ago

.Fixed in Version 0.4