Java tutorial
public class Main { public static void main(String[] args) { float x = 12.34f; float y = -4f; // call signum for both floats and print the result System.out.println("Math.signum(" + x + ")=" + Math.signum(x)); System.out.println("Math.signum(" + y + ")=" + Math.signum(y)); } }