2 ms·
A more direct comparison given perl6's typing would be either [python] >>> from decimal import Decimal >>> Decimal("0.1") + Decimal("0.2") == Decim
by ryebit 9y ago
A more direct comparison given perl6's typing would be either
[python]
>>> from decimal import Decimal
>>> Decimal("0.1") + Decimal("0.2") == Decimal("0.3")
True
or
[python]
>>> 0.3 == 3e-1
True
What the perl6 "0.3 != 3e-1" comparison is really doing is
[python]
>>> from decimal import Decimal
>>> Decimal("0.3") == 3e-1
False