''' Purpose: reminder that Python arithmetic manipulates values with finite precision ''' print() print( 'Some ramifications of Python only keeping track of about 12 significant digits' ) print( 'for a decimal value is \n' ) n1 = 1000000000000.0 + 0.00001 n2 = 1000000000000.0 + 0.00001 - 1000000000000.0 print( 'In Python 1000000000000.0 + 0.00001 is:', n1 ) print() print( 'In Python 1000000000000.0 + 0.00001 - 1000000000000.0 is:', n2 ) print()