📅  最后修改于: 2022-03-11 14:52:17.793000             🧑  作者: Mango
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