PUTNUMB - output a decimal number.

Usage:

B:
   putnumb( number [, length, fill] );
C:
   void putnumb(int number [, int length, int fill] );

Where:

number
is the number to be written out.
length
is the minimum width of the output field including the sign. If "length" is not specified, the default is zero (no minimum).
fill
is an ASCII character to be used as a fill character when padding the output to the desired "length". The default "fill" character is a blank.

Description:

PUTNUMB outputs the given "number" in decimal format on the current write unit.

Examples:

putnumb(10)           will output 10
putnumb(-10,5)        will output   -10
putnumb(10,10,'0')    will output 0000000010
putnumb(-10,10,'b')   will output bbbbbbb-10
putnumb(-10,10,'0')   will output -000000010

Generally speaking, it is preferable to use PRINTF instead of PUTNUMB.

See Also:

expl b lib printf

Copyright © 1996, Thinkage Ltd.