@nevware21/ts-utils
    Preparing search index...

    Function mathSqrt

    The mathSqrt() function returns the square root of a number.

    0.12.0

    A number

    The square root of x, a positive number. If x is negative, NaN is returned.

    mathSqrt(9); // 3
    mathSqrt(2); // 1.414...
    mathSqrt(1); // 1
    mathSqrt(0); // 0
    mathSqrt(-1); // NaN
    • Returns the square root of a number.

      Parameters

      • x: number

        A numeric expression.

      Returns number