Answers for "float division by zero in python"

0

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
Posted by: Guest on March-08-2021

Code answers related to "float division by zero in python"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language