Copyright © Cloud Software Group, Inc. All Rights Reserved |
Returns a syntax V string containing the same internal packed decimal value as the input syntax P value, right-justified. (F)
• Each byte of the returned string is initialized to 0 and the input packed decimal representation is moved into the string right-justified.
• If the packed value cannot fit into the specified length, it is truncated on the left, resulting in loss of significance.
A2(-0.003,5) results in a 5‑byte STR buffer. The first 4 bytes are 0 (and display as blanks), and the fifth byte is x'3D' (a hexadecimal number that displays as “.”), which is the internal packed representation for -3.A2(0,7) results in a 7‑byte STR buffer. The first 6 bytes are 0 (and display as blanks), and the seventh byte is x'0C' (a hexadecimal number that displays as “.”).
Copyright © Cloud Software Group, Inc. All Rights Reserved |