Fixed repeating decimal

added the Math.round method to round up repeating decimals.