Method

# Sqrt

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Returns the square root of the value specified.

## Usage

``` xojo
result = Sqrt(value)
```

| Part   | Type                             | Description                              |
|--------|----------------------------------|------------------------------------------|
| value  | `Double</api/data_types/double>` | The *value* you want the square root of. |
| result | `Double</api/data_types/double>` | The square root of the *value*.          |

## Notes

The <span class="title-ref">Sqrt</span> function returns the square root of the value passed to it.

## Sample code

This example uses the <span class="title-ref">Sqrt</span> function to return the square root of a number.

``` xojo
Var d As Double
d = Sqrt(16) ' returns 4
```

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`^</api/language/operators/mathematical/^>`, `*</api/language/operators/mathematical/x>` operators.

</div>
