The checked forms check for overflow and generate a runtime exception if the resulting value exceeds the limits of the target type.
执行检查形式将会检查溢出情况,如果结果值超出目标类型的限制,则会生成运行时异常。
To avoid any division by zero or overflow, transform all division into multiplication and check for the sign (horizontal lines with Y2=Y1 do not count in the algorithm)
要避免任何数与 0 相除或溢出,将所有除法转换为乘法并检查运算符号(Y2=Y1 的水平线不会计入算法)
66000 is chosen to check for integral overflow on small integer machines.
这里的66000代表机器的整型溢出的上限值,根据不同机器字长进行设定。
应用推荐