JSL.number

This holds the number based operations. I am not sure why I have included this in the main code base - it don't have a lot of practical uses.

JLS.number Code

Arguments

 * number
 * The initial number - the original value

JSL.number.times( func )
Calls the function provided as the argument the specified number of times. It also gives the number of the current run as an argument to the user function.

Arguments

 * func
 * The Function

JSL.number.upto( upper_limit, func )
Calls the given function with the value of the current number as an argument.

Arguments

 * upper_limit
 * The upper limit of the loop - the function will be executed while initial_number


 * func
 * The Function

JSL.number.round( decimal_points )
Function that could be used to round a number to a given decimal points. Returns the answer. Taken from http://www.openjs.com/scripts/maths/rounding_numbers.php

Arguments

 * decimal_points
 * The number of decimal points that should appear in the result