Larry Battle
Larry Battle
Should some methods to removed??? Here are my thoughts from a while ago. Keep: ``` Ratio.VERSION Ratio.random Ratio.parse Ratio.prototype.abs Ratio.prototype.add Ratio.prototype.ceil Ratio.prototype.clone Ratio.prototype.deepEquals Ratio.prototype.denominator Ratio.prototype.descale Ratio.prototype.divide Ratio.prototype.equals Ratio.prototype.floor Ratio.prototype.isNaN Ratio.prototype.mod...
Ok. I'll look into this. Give me 2 weeks. :-)
The problem with this benchmark is that `.simplify()` is being called after each operation. Not sure why the original author did that. Source: ``` for (var i in test_cases) {...
Could you provide sample code or a link to a codepen?
I'm not sure if that's useful for most people. Could you elaborate more on the use case?
`gulp-qunit` does the job! But .. should I switch to mocha for better support and more features???
How is this different than using `.simplify()` and `.toQuantityOf()`? ``` Ratio.parse(1/3, 10).valueOf() === 0.03333333333333333 Ratio.parse(1/3, 10).toString() === "3333333333333333/100000000000000000" Ratio.parse(1/3, 10).simplify().toString() === "1/30" Ratio.parse(1/3, 10).toQuantityOf(10).toString() === "0/10" Ratio.parse(1/3).simplify().toString() === "1/3" Ratio.parse(1/3).toQuantityOf(10).toString()...
Note: The documentation should have a table showing how `.toString()` and `toLocaleString()` work with different numeric data types.
Ok. I'll add support for bower it within a few days.
Try this. How to implement a paper http://codecapsule.com/2012/01/18/how-to-implement-a-paper/