Java Number Copy Sign copySign(Double magnitude, Double sign)

Here you can find the source of copySign(Double magnitude, Double sign)

Description

Copy sign.

License

Open Source License

Parameter

Parameter Description
magnitude the magnitude
sign the sign

Return

the double

Declaration

public static double copySign(Double magnitude, Double sign) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from www .ja va 2  s  .c  o  m
     * Copy sign.
     *
     * @param magnitude the magnitude
     * @param sign the sign
     * @return the double
     */
    public static double copySign(Double magnitude, Double sign) {
        return Math.copySign(magnitude, sign);
    }

    /**
     * Copy sign.
     *
     * @param magnitude the magnitude
     * @param sign the sign
     * @return the float
     */
    public static float copySign(Float magnitude, Float sign) {
        return Math.copySign(magnitude, sign);
    }
}

Related

  1. copySign(double magnitude, double sign)
  2. copySign(double x, double y)
  3. copySign(final double magnitude, final double sign)
  4. copysign(final double x, final double y)
  5. copySign(final double x, final double y)