prova con

variabile == Double.POSITIVE_INFINITY