Denny Huang says to YSITD
Double.isInfinite(var)