Here you can find the source of signum(double z)
Parameter | Description |
---|---|
z | double number. |
public static int signum(double z)
//package com.java2s; public class Main { /** Returns sign of double number. * @param z double number./* www .j a v a2s . c om*/ * @return int sign. */ public static int signum(double z) { return (z < 0) ? -1 : 1; } }