.NWIDTH - calculate the print width of a number.

Alternate Entry Name: _NWIDT

Usage:

B:
   charcnt = .nwidth( num [,base] )
C:
   int _nwidth(int num [, int base] );

Where:

num
is the number whose width is desired.
base
is an optional base (default 10) that the number is in.

Description:

.NWIDTH is designed to provide the width in characters of a number, including a leading negative sign. For example, the width of "-30" is 3 and the width of "222" is 3.

Copyright © 1996, Thinkage Ltd.