[Python-ideas] Hexadecimal floating literals
Guido van Rossum
guido at python.org
Thu Sep 21 23:38:25 EDT 2017
More information about the Python-ideas mailing list
Thu Sep 21 23:38:25 EDT 2017
- Previous message (by thread): [Python-ideas] Hexadecimal floating literals
- Next message (by thread): [Python-ideas] Hexadecimal floating literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Sep 21, 2017 at 8:30 PM, David Mertz <mertz at gnosis.cx> wrote: > Simply because the edge cases for working with e.g. '0xC.68p+2' in a > hypothetical future Python are less obvious and less simple to demonstrate, > I feel like learners will be tempted to think that using this base-2/16 > representation saves them all their approximation issues and their need > still to use isclose() or friends. > Show them 1/49*49, and explain why for i < 49, (1/i)*i equals 1 (lucky rounding). -- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170921/1a237f46/attachment.html>
- Previous message (by thread): [Python-ideas] Hexadecimal floating literals
- Next message (by thread): [Python-ideas] Hexadecimal floating literals
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list