Contact: aviboots(AT)netvision.net.il
41,321 questions
53,836 answers
573 users
import math for f in [0.0, 1.0, math.e, math.pi, math.nan, math.inf]: print('{:4.2f} {!s}'.format(f, math.isfinite(f))) ''' run: 0.00 True 1.00 True 2.72 True 3.14 True nan False inf False '''