Ticket #16514: float_nan.diff

File float_nan.diff, 464 bytes (added by kman, 4 years ago)

nan_equals_float_nan

  • django/template/defaultfilters.py

    diff -r 6bd3970613d9 django/template/defaultfilters.py
    a b  
    9191# (see Python Issue757815 and Issue1080440).
    9292pos_inf = 1e200 * 1e200
    9393neg_inf = -1e200 * 1e200
    94 nan = (1e200 * 1e200) / (1e200 * 1e200)
     94nan = float('nan')
    9595special_floats = [str(pos_inf), str(neg_inf), str(nan)]
    9696
    9797def floatformat(text, arg=-1):
Back to Top