SourcePoint Intel Help

Table of Contents

sqrt

Return the square root of an expression.

Syntax

[result =] sqrt(expr)

Where:

result

specifies a debug object of type real8 to which the function return value is assigned. If name is not specified, the return value is displayed.

expr

specifies a number or an expression of type real8.

Discussion

The sqrt command returns the square root of an expression. ย Sqrt returns 0 (zero) when expr is negative.

Note: Values returned by this command are in real8 ( 64-bit floating point) precision. These values are displayed in the Command window rounded to 6 decimal digits. However, assignments and comparisons are performed on the full 64-bit value.

Example 1

Command input:

sqrt(64t)

Result:

8

Example 2

Command input:

define real8 answer = sqrt(102t)

answer

Result:

16.0624

Related Topics: