BINBCD - convert a binary number to BCD.

Alternate Entry Name: BIN.BC

Usage:

B:
   bcdnum = binbcd( binarynum );
C:
   int binbcd(int binarynum);

Description:

BINBCD regards its argument as a normal binary number, and returns this number in the form of a single word containing six right-justified numeric BCD characters. If "binarynum" is negative, BINBCD will return its absolute value in BCD format. If "binarynum" is more than six digits long, the value which BINBCD returns will be undefined.

See Also:

expl b lib bcdadd

expl b lib bcdsub

Copyright © 1996, Thinkage Ltd.