This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients mark.dickinson, rhettinger, skrah, steven.daprano, tim.peters
Date 2014-08-15.05:27:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408080436.78.0.588280213771.issue22198@psf.upfronthosting.co.za>
In-reply-to
Content
> 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')
History
Date User Action Args
2014-08-15 05:27:16rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, steven.daprano, skrah
2014-08-15 05:27:16rhettingersetmessageid: <1408080436.78.0.588280213771.issue22198@psf.upfronthosting.co.za>
2014-08-15 05:27:16rhettingerlinkissue22198 messages
2014-08-15 05:27:16rhettingercreate