copysign
Overloads
| Name | Description |
|---|---|
copysign(bool p1, real p2) -> real | Copies the sign of the second value to the first value. |
copysign(integer p1, bool p2) -> integer | Copies the sign of the second value to the first value. |
copysign(real p1, integer p2) -> real | Copies the sign of the second value to the first value. |
copysign(bool p1, bool p2) -> integer | Copies the sign of the second value to the first value. |
copysign(integer p1, integer p2) -> integer | Copies the sign of the second value to the first value. |
copysign(integer p1, real p2) -> real | Copies the sign of the second value to the first value. |
copysign(real p1, real p2) -> real | Copies the sign of the second value to the first value. |
copysign(real p1, bool p2) -> real | Copies the sign of the second value to the first value. |
copysign(bool p1, integer p2) -> integer | Copies the sign of the second value to the first value. |
copysign(bool p1, real p2) -> real
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(integer p1, bool p2) -> integer
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(real p1, integer p2) -> real
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(bool p1, bool p2) -> integer
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(integer p1, integer p2) -> integer
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(integer p1, real p2) -> real
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(real p1, real p2) -> real
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(real p1, bool p2) -> real
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.
copysign(bool p1, integer p2) -> integer
Copies the sign of the second value to the first value.
Parameters
- p1: The value whose magnitude is used.
- p2: The value whose sign is used.