SQRT Function

Purpose

Returns the positive square root of the specified value.

Syntax

SQRT(x)

Parameters

x is a positive or zero floating-point value.

Description

The SQRT function returns the positive square root of x. The result has the same data type as x.

Examples

SQRT(4.0)    /* returns 2.0 */

Restrictions

An SQRT operation on floating-point decimal data is actually performed using the floating-point binary operation. Thus, the range of the operands and the result of the operation are limited to the ranges for floating-point binary numbers.