It just throws the decimal point away and that's because, again, these are ints and the answer intuitively should be a floating point value, but I need to be more specific.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
And that's useful because clearly I don't need to know in advance what the answer is going to be, what that string is actually going to be.
那个是有用的,因为我不需要预先知道,那个答案将会变成什么,或者那个字符串将变成什么的时候。
应用推荐