Skip to main content

FromPackedDecimal

FromPackedDecimal Function

Converts packed decimal byte array to ASCII string.

Syntax

FromPackedDecimal (scalar Value, scalar Precision)

Arguments

ArgumentDescription
scalar ValuePacked decimal byte array
scalar PrecisionPrecision value indicating the position of decimal point

Examples:

FromPackedDecimal(ToBytes('123456D'), 1)

Returns an ASCII string value equivalent to 123456D with precision 1.