Added a precision rounding function.
Added a rounding unit test and fixed perlin unit test.