Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java infinity

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #infinity
ADD COMMENT
Topic
Name
6+3 =