Skip to content
FutureBlitz

    Install

    Import std.math.scalar

    Sqrt

    std.math.scalar

    function

    Public Function Sqrt<T: FloatingPoint>(value: T): T

    The square root. A negative value's is NaN.

    Examples

    Expect(Sqrt(16.0) == 4.0)
    Expect(IsClose(Sin(Deg(30)), 0.5))
    Expect(IsClose(Atan2(1.0, 1.0), Deg(45)))

    std/math/scalar.fb, line 325

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