copysign
fn
R copysign(R, X)(R to, X from) if (isFloatingPoint!(R) && isFloatingPoint!(X)) @trusted pure nothrow @nogcParameters
to | the numeric value to use |
from | the sign value to use |
Returns
a value composed of to with from's sign bit.
fn
R copysign(R, X)(X to, R from) if (isIntegral!(X) && isFloatingPoint!(R)) @trusted pure nothrow @nogcditto