meaning that the exact number stored in the computer is equal to the decimal value instead of displaying the full decimal valuemany languages (including older versions of python)round the result to significant digitsformat( '' the fractions and decimal modules make these calculations easyfrom decimal import decimal from fractions import fraction fraction from_float( fraction( ( as_integer_ratio(( decimal from_float( decimal(' 'format(decimal from_float( ) '' representation error