Ticket #16514: float_nan.diff
File float_nan.diff, 464 bytes (added by , 13 years ago) |
---|
-
django/template/defaultfilters.py
diff -r 6bd3970613d9 django/template/defaultfilters.py
a b 91 91 # (see Python Issue757815 and Issue1080440). 92 92 pos_inf = 1e200 * 1e200 93 93 neg_inf = -1e200 * 1e200 94 nan = (1e200 * 1e200) / (1e200 * 1e200)94 nan = float('nan') 95 95 special_floats = [str(pos_inf), str(neg_inf), str(nan)] 96 96 97 97 def floatformat(text, arg=-1):