I'm expecting 0.1
as a result but:
In [1]: 0.3 / 3
Out[1]: 0.09999999999999999
Tried with Decimal
, nothing changed.
In [2]: from decimal import Decimal
In [3]: Decimal(0.3) / Decimal(3)
Out[3]: Decimal('0.09999999999999999629925658458')
What should I have to do to get correct result?