Ratio.js Provedes Fraction/Rational/Ratio Object in Javascript
Join the DZone community and get the full member experience.
Join For Free
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.
requirements : none
demo : https:/ / github. com/ larrybattle/ ratio. js/
license : mit license or gplv3
browser support.
requirements : none
demo : https:/ / github. com/ larrybattle/ ratio. js/
license : mit license or gplv3
JavaScript library
Object (computer science)
Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments