[Python-ideas] math.inf and math.nan constants

Chris Angelico rosuav at gmail.com
Wed Jan 7 17:14:17 CET 2015

On Thu, Jan 8, 2015 at 3:09 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> I can remember the first six digits of pi, 3.1415...

Aside: That's technically an incorrect approximation. Since the next
digit is a 9, you ought to round that up... or just use 3.14159,
stopping before the 2 and thus correctly rounding down.


More information about the Python-ideas mailing list