INTFORMAT

INTFORMAT(expression, width, mode)

expressionThe expression that specifies the integer value to format.
widthThe size of string in which to right-justify the value. If the expression width is greater than this width, the result is filled with asterisks (*).
modeThe format type: 0 = leading blank fill, 1 = leading zero fill.
Return:INTFORMAT returns a single value.

The INTFORMAT function returns the value of the expression formatted as a right-justified string of width characters.

Example:

val := 123456789;
OUTPUT(INTFORMAT(val,20,1));
  //formats as '00000000000123456789'
OUTPUT(INTFORMAT(val,20,0));
  //formats as '          123456789'
OUTPUT(INTFORMAT(val,2,0));
  //formats as '**'

See Also: REALFORMAT