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.
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'

See Also: REALFORMAT