PRECISION Function

Purpose

Returns the value of the specified expression using specified precsion.

Syntax

PRECISION(x,p[,q])

Abbreviation: PREC for PRECISION.

Parameters

x is an expression, and p and q are restricted expressions.

Description

p specifies the number of digits that the value of the expression x is to have after conversion.

q specifies the scaling factor of the result. For a fixed-point result, if q is omitted a scaling factor of zero is assumed. For a floating-point result, q must be omitted.

The base, mode, and scale of the returned value are the same as that of x.

Restrictions

None.