# null

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/Other/Functions/CAPLfunctionSqrt.md)

[CAPL Functions](../../CAPLfunctions.md) » [General](../CAPLGeneralStartPage.md) » [Function Overview](../CAPLfunctionsGeneralOverview.md) » sqrt

# sqrt

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

## Function Syntax

```plaintext
double sqrt(double x);
```

## Description

Calculates the square root.

## Parameters

Value whose square root is to be calculated.

## Return Values

Square root of x.

## Example

```plaintext
double x;
x = sqrt(4.0); // Result 2.0
```

[cos](CAPLfunctionCos.md) • [exp](CAPLfunctionExp.md) • [sin](CAPLfunctionSin.md)
