REALFORMAT(expression, width, decimals )
expression | The expression that specifies the REAL value to format. |
width | The size of string in which to right-justify the value. |
decimals | An 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 MyFloat := 1000.0063;
STRING12 FloatStr12 := REALFORMAT(MyFloat,12,6);
OUTPUT(FloatStr12); //results in ' 1000.006300'
See Also: INTFORMAT