vendredi 5 juin 2015

compare Double.MIN_VALUE and 0

why this code does't work?Actually,this is just the small part of a big program.It has to compare Double.MIN_VALUE to different values,it works with all values except 0. ,why?Thanks!

double d = Double.MIN_VALUE;
if (0. > d) {
    System.out.println("OK");
}

Aucun commentaire:

Enregistrer un commentaire