Answers for "infinity constatn in java"

0

infinity constatn in java

double inf = Double.POSITIVE_INFINITY;
System.out.println(inf + 5);
System.out.println(inf - inf); // same as Double.NaN
System.out.println(inf * -1); // same as Double.NEGATIVE_INFINITY
Posted by: Guest on May-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language