Note that, in this example, sum must be initialized to an explicit floating-point value; otherwise, all the subsequent computations will be done using integer arithmetic.
注意,在本例中,sum必须被初始化为一个显式的浮点值;否则,所有后续计算都将使用整数运算计算。
In arithmetic the positive integer and the positive fraction were sufficient for all requirements.
在算数中,曾经正整数和正分数能够满足所有的需求。
In arithmetic the positive integer and the positive fraction were sufficient for all requirements.
在算数中,曾经正整数和正分数能够满足所有的需求。
应用推荐