I'm learning Python. Maybe this is a silly mistake and not related to Python at all but appreciate some clarity.
I have the following code.
from decimal import Decimal
expense = Decimal('10.00')
v = Decimal('93.93863013698630136986301369')
n = Decimal('46.90520547945205479452054796')
yearly_expense = Decimal('0')
vn = v + n
r1 = expense - yearly_expense + v + n
r2 = expense - yearly_expense + vn
print(r1)
print(r2)
When I execute I get
150.8438356164383561643835617
150.8438356164383561643835616
Note the last digits. Why the 2 numbers are different?