copySign()

Takes the sign of the number from the second argument and uses it as the sign of the number given in the first argument.

This function is valid in v2.13.0 to v2.14.0. This function has been downloaded 25 times.

Parameters

{number} number1
The number that will be returned with the sign specified by number2.
{number} number2
The number that has the sign (positive or negative) to use as the sign for number1 when it is returned from this function.

Returns

{number}
number1 will be returned but with the same sign (positive or negative) as the one specified for number2.