python round variable to 2 decimal places code example Example: python round to dp round(float_num, num_of_decimals)