truncate decimal python to two number code example Example: how to round to two places python round(number, decimal places)