REALFORMAT

REALFORMAT(expression, width, decimals )

expressionThe expression that specifies the REAL value to format.
widthThe size of string in which to right-justify the value.
decimalsAn integer specifying the number of decimal places.
Return:REALFORMAT returns a single value.

The REALFORMAT function returns the value of the expression formatted as a right-justified string of width characters with the number of decimals specifed.

Example:

REAL8 Float := 1000.0063;
STRING12 FloatStr12 := REALFORMAT(float,12,6);
OUTPUT(FloatStr12); //results in ' 1000.006300'

See Also: INTFORMAT