%PACKED

Convert a numeric expression to packed decimal data

WTSupported in traditional Synergy on Windows

 

USupported on UNIX
VSupported on OpenVMS
converted = %PACKED(expression[, precision])

Return value

converted

A converted numeric expression. The result is packed decimal data format or implied‑packed decimal data format. (p)

Arguments

expression

The numeric expression to be converted. (n)

precision

(optional) The precision value for an implied‑packed decimal number. (n)

Discussion

%PACKED converts a numeric expression to the packed or implied‑packed decimal data type.

Note

The %PACKED function has been superseded by the p data type.

Examples

val = %packed(324)
impval = %packed(436.7, 3)