Here you can find the source of signum(long l)
public static int signum(long l)
//package com.java2s; public class Main { public static int signum(long l) { if (l > 0) { return 1; } else if (l < 0) { return -1; } else {// w w w . ja va 2 s .c om return 0; } } public static int signum(double l) { if (l > 0) { return 1; } else if (l < 0) { return -1; } else { return 0; } } }