how to convert decimal number to fraction using javascript code example
Example: js convert to fraction
>>> npm install fractional
import * from './fraction.js'
var frac = new Fraction(0.3435);
console.log(frac.toString());
// returns "34/35"
>>> npm install fractional
import * from './fraction.js'
var frac = new Fraction(0.3435);
console.log(frac.toString());
// returns "34/35"