cntx/fraction.js — pull request #2 by Skare69 (2012-06-28 07:20:59+00:00)
Title: Added a function to return the fraction in its floating point representation.

Added a function to return the fraction in its floating point representation.

Example:

> var test = new Fraction(56,129);
undefined
> test
{ numerator: 56, denominator: 129 }
> test.toString()
'56/129'
> test.toFloat()
0.43410852713178294