Math387.Sqrt / Sqrtf Method

Overload List

#SignatureDescription
1Double Sqrt(Double X)Square root.
2Double Sqrt(Int32 Src)
3Double Sqrt(Int64 Src)
4Single Sqrt(Single Src)
5Single Sqrtf(Int32 Src)
6Single Sqrtf(Int64 Src)
7Single Sqrtf(Single X)Square root.

Overload 1: Double Sqrt(Double X)

Square root.

#NameTypeDescription
1XDoublescalar

Returns: Double - Returns double precision square root of the given number X.

Remarks:

Math387.Sqrt uses SSE2 SQRTSD on Win32/Win64 (single hardware instruction) via the SVML override path; non-Windows targets fall back to System.Sqrt through the PURE_PASCAL include. Faster than the x87-FPU FSQRT that Delphi's built-in System.Sqrt historically used.

Overload 2: Double Sqrt(Int32 Src)

#NameTypeDescription
1SrcInt32

Returns: Double

Overload 3: Double Sqrt(Int64 Src)

#NameTypeDescription
1SrcInt64

Returns: Double

Overload 4: Single Sqrt(Single Src)

#NameTypeDescription
1SrcSinglescalar

Returns: Single

Overload 5: Single Sqrtf(Int32 Src)

#NameTypeDescription
1SrcInt32

Returns: Single

Overload 6: Single Sqrtf(Int64 Src)

#NameTypeDescription
1SrcInt64

Returns: Single

Overload 7: Single Sqrtf(Single X)

Square root.

#NameTypeDescription
1XSinglescalar

Returns: Single - Returns single precision square root of the given number X.