round() is now being used in the function, so that compilers without round() in their math.h is supported.