SQLite SQRT() Function
Definition and Usage
The SQRT() function returns the square root of a number. For a negative number, it returns NULL.
Note: Some SQLite builds do not include the math functions, because they need the compile option SQLITE_ENABLE_MATH_FUNCTIONS. They work in our editor.
Tip: Also look at POW().
Syntax
SQRT(number)
Parameter Values
| Parameter | Description |
|---|---|
| number | Required. A number, 0 or greater |
Technical Details
| Return type: | Real |
|---|---|
| Works in: | SQLite 3.35.0 and later |