Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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