Java Number Sign signum(Double d)

Here you can find the source of signum(Double d)

Description

Signum.

License

Open Source License

Parameter

Parameter Description
d the d

Return

the double

Declaration

public static double signum(Double d) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from w  w  w  . j  ava  2  s.  c om
     * Signum.
     *
     * @param d the d
     * @return the double
     */
    public static double signum(Double d) {
        return Math.signum(d);
    }

    /**
     * Signum.
     *
     * @param f the f
     * @return the float
     */
    public static float signum(Float f) {
        return Math.signum(f);
    }
}

Related

  1. signum(byte[] value)
  2. signum(double value)
  3. signum(double z)
  4. signum(final double x)
  5. signum(final int a)