Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

float division by zero

float x = 1.0f / 0.0f;
System.out.println(x);  // Infinity
float y = -1.0f / 0.0f;
System.out.println(y);  // -Infinity
float z = 0.0f / 0.0f;
System.out.println(z);  // NaN
 
PREVIOUS NEXT
Tagged: #float #division
ADD COMMENT
Topic
Name
4+7 =