bdfs1m0qStructured Programming Macros

#COND-Convert Binary to Character Decimal

Use this macro to generate inline code to convert a binary number to character decimal with leading zeros.

Note:
See Table 1 for a summary of all the conversion macros.

Format




INPUT=reg1
specifies a register, reg1, that contains the binary number to convert.

TO=reg2
specifies a register, reg2, that points to the location that will contain the converted value.

LENGTH=maxval
specifies the length of the resulting character decimal string, where maxval is the length. The maximum value for maxval is 15.

WORK=workarea
specifies an 8-byte work area.

Entry Requirements

None.

Return Conditions

Programming Considerations

Examples

Related Macros

#CONS-Convert Binary to Character Decimal with Zero Suppression.