PRECISION returns the value of
x, with a precision specified
by
p and
q. The base, mode, and scale of the returned
value are the same as that of
x.
>>-PRECISION(x,p-+----+-)--------------------------------------><
'-,q-'
Abbreviation: PREC
- x
- Expression.
- p
- Restricted expression. p specifies the number of digits
that the value of the expression x is to have after conversion.
- q
- Restricted expression. It 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.