Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Double Sqrt(Double X) | Square root. |
| 2 | Double Sqrt(Int32 Src) | |
| 3 | Double Sqrt(Int64 Src) | |
| 4 | Single Sqrt(Single Src) | |
| 5 | Single Sqrtf(Int32 Src) | |
| 6 | Single Sqrtf(Int64 Src) | |
| 7 | Single Sqrtf(Single X) | Square root. |
Overload 1: Double Sqrt(Double X)
Square root.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Double | scalar |
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)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Int32 |
Returns: Double
Overload 3: Double Sqrt(Int64 Src)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Int64 |
Returns: Double
Overload 4: Single Sqrt(Single Src)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Single | scalar |
Returns: Single
Overload 5: Single Sqrtf(Int32 Src)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Int32 |
Returns: Single
Overload 6: Single Sqrtf(Int64 Src)
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Int64 |
Returns: Single
Overload 7: Single Sqrtf(Single X)
Square root.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | Single | scalar |
Returns: Single - Returns single precision square root of the given number X.