UNPKG

lb-ratio

Version:

Provides a Fraction, Rational, and Ratio object for javascript.

5 lines (4 loc) 235 B
// This is a basic demo of using Ratio.js with node.js var Ratio = require("./../"); console.log( "Ratio.VERSION = %s", Ratio.VERSION ); console.log( "Ratio.parse(3,4).add(1,8).toString() = %s", Ratio.parse(3,4).add(1,8).toString() );