Function roundNumTo

Round a number to the given decimal precision.