Hirvesh Munogee is a freelance web developer who also happens to have a passion for blogging. Hirvesh is a DZone MVB and is not an employee of DZone and has posted 167 posts at DZone. You can read more from them at their website. View Full User Profile

Ratio.js Provedes Fraction/Rational/Ratio Object in Javascript

06.16.2012
| 1275 views |
  • submit to reddit
Ratio.js is a JavaScript library which provides a fraction/rational/ratio object for JavaScript.  By keeping values in a rational form, you can maintain precision and can avoid common floating point operation errors in JavaScript.


Browser Support.

Chrome 19, Firefox 12, IE 7+, and Opera 11+.
Requirements: None
Demohttps:/ / github. com/ LarryBattle/ Ratio. js/
License: MIT License or GPLv3
Published at DZone with permission of Hirvesh Munogee, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags: