Skip to content
FutureBlitz

    Install

    Import std.math.scalar

    CopySign

    std.math.scalar

    function

    Public Function CopySign<T: FloatingPoint>(magnitude: T, sign: T): T

    The magnitude with the sign of sign, -0 and NaN's included: CopySign(2.0, -0.0) is -2.

    std/math/scalar.fb, line 403

    Report an issue with this page or with FutureBlitz on GitHub.