summaryrefslogtreecommitdiff
path: root/src/lq/Doubles.java
blob: 551e65ab5417c5901681ed73295ba1e62eed922d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package lq;

public class Doubles {
    public static final int signum(Double d) {
        if (d < 0.0) {
            return -1;
        }
        else if (d > 0.0) {
            return 1;
        }
        else {
            return 0;
        }
    }
}