Why is Java's Double.compare(double, double) implemented the way it is?

后端 未结 4 1169
情书的邮戳
情书的邮戳 2020-12-01 03:26

I was looking at the implementation of compare(double, double) in the Java standard library (6). It reads:

public static int compare(double d1, double d2) {
         


        
4条回答
提交回复
热议问题