randRange( 1, 30 ) randRange( NUMERATOR + 1, 30 ) Math.floor( NUMERATOR / DENOMINATOR * 10000 ) / 10000 roundTo( 3, NUMERATOR / DENOMINATOR )

Express the fraction as a decimal, rounded to the thousandth.

\dfrac{NUMERATOR}{DENOMINATOR}

DECIMAL

This fraction represents the result of dividing NUMERATOR by DENOMINATOR.

graph.divider = new Divider( DENOMINATOR, NUMERATOR * 10000, 0, 4 ); graph.divider.show(); DUMMY = Array( graph.divider.getNumHints() );
graph.divider.shiftDecimals();
graph.divider.showHint();

Rounding DECIMAL_4.toFixed( 4 ) to the thousandths place gives DECIMAL.toFixed( 3 ).