Added nearestNumber function to M.Math