These notes are adapted from the class lecture notes for CS558, Computational Geometry, which was taught at the University of Wisconsin-Madison in the fall of 2013. But the conceptual advantages of ...
First do an npm install fractional-arithmetic. Then, load the library into your code: var Fraction = require('fractional-arithmetic').Fraction;. You're good to go ...