Returns a number limited to a specific number of decimal places. This is different from the native toFixed()
method because it returns a number not a string.
function round(n: number, precision: number)
// Example:
round(4.24398, .001) //=> 4.244
round(528, 10) //=> 530
round(528, 100) //=> 500