Here you can find the source of copySign(Double magnitude, Double sign)
Parameter | Description |
---|---|
magnitude | the magnitude |
sign | the sign |
public static double copySign(Double magnitude, Double sign)
//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); } }