获取两个小数的余数效果很好,但当尝试获取两个大数的余数时,例如- 1.03475761285374E+33返回0。有没有办法除以双精度并得到余数?sStep2(x)Next x
ReDim sRemainder(0)Dim sValue As DoubleDim sNextValue As Double
为什么整数除以0会得到ArithmeticException,而非零的双精度或浮点数除以0会打印出无穷大。同样,整数0除以0会得到ArithmeticException,而双精度型或浮点型0除以0会得到NaN(不是数字)。public class First public static void main(String[] args)