Well rounding is inherent to shortening the number. There wouldn't be much use display, say, "1.234567M" instead of "1 234 567". However, the function I made can round to the desired decimal place. The second parameter is the decimal place count that you wish to have. I guess 3 decimal places would be the just compromise.