public class test {
public static void main(String[] args) {
double num = -Double.MAX_VALUE;
double num1 = Double.MIN_VALUE;
if (num < num1)
System.out.println("num");
else
System.out.println("num1");
}
}
I wrote this code to check which one is smaller and it return num, I was wondering why is it like that with double but not with integers?