Added utility function to reduce precision of decimal numbers.

Useful for logging and debugging (maybe other things)