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.
它直接把小数点后面的数值丢弃掉了,因为,凭直觉,那些整型数和结果应该是一个浮点数据,但是我需要一个更精确的数值。
Do one comparison and return one of two possible orders on it, but I need to decide that.
虽然可以做一次比较,然后返回两个可能的顺序中的一个为结果,但是这需要我来做决定。
So, I have to check for that, but nine times out of ten there's not going to be a problem so now let's do this.
所以,我需要做一个检查,但是通过十有八九,这不会出现问题,现在我这样处理。
But there's an important point here.
但是这儿有一个重要的点我需要提一下。
应用推荐