How do I type a floating point infinity literal in python
Posted
by fmark
on Stack Overflow
See other posts from Stack Overflow
or by fmark
Published on 2010-05-27T09:04:24Z
Indexed on
2010/05/27
9:11 UTC
Read the original article
Hit count: 338
How do I type a floating point infinity literal in python?
I have heard
inf = float('inf')
is non portable. Thus, I have had the following recommended:
inf = 1e400
Is either of these standard, or portable? What is best practice?
© Stack Overflow or respective owner