math.copysign() function returns a value with the magnitude of
x and the sign of
Output data type: Float
import "math" math.copysign(x: 1.0, y: 2.0) // Returns 1.0
The magnitude used in the operation.
The sign used in the operation.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.