Float 或者 Double 除以零不会抛出 java.lang.ArithmeticExceptionL:/by zero 异常
1. Java 的浮点运算是基于 IEEE-754 标准来的。
- IEEE-754 standard
- Java's Floating-Point Operations
2. Java 语言规范
https://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.2.3
- 1.0 / 0 = +Infinity
- -1.0 / 0 = -Infinity
- 0 / 0 = NaN