Message225340
> ideally, a floating-point operations works as though the
> corresponding mathematical operation were performed exactly
>on the inputs (considered as real numbers), followed by a rounding
> step that takes the resulting real number and rounds it to the
> nearest floating-point number.
FWIW, the Decimal Arithmetic Specification was created around the same principle. Accordingly, it gets the answer that Mark expected:
>>> from decimal import Decimal
>>> Decimal('-0.5') // Decimal('Inf')
Decimal('-0') |
|
Date |
User |
Action |
Args |
2014-08-15 05:27:16 | rhettinger | set | recipients:
+ rhettinger, tim.peters, mark.dickinson, steven.daprano, skrah |
2014-08-15 05:27:16 | rhettinger | set | messageid: <1408080436.78.0.588280213771.issue22198@psf.upfronthosting.co.za> |
2014-08-15 05:27:16 | rhettinger | link | issue22198 messages |
2014-08-15 05:27:16 | rhettinger | create | |
|