Set Format for Floating point numbers
SETFFORMAT width, format, prec
SETFFORMAT width, format
SETFFORMAT width
SETFFORMAT
The procedure controls, how floating point values are converted into strings. The parameter width gives the number of characters to be used. format may have 3 values:
1 | dynamically selected |
2 | floating point |
3 | scientific |
The parameter prec controls precision.
Without any parameter the procedure switches back to standard.
FORMAT | V1 | V2 | V3 |
SETFFORMAT | 3.14159 | 314159 | 3.14159e+17 |
SETFFORMAT 15,1,4 | 3.142 | 3142e-05 | 3.142e+17 |
SETFFORMAT 15,2,4 | 3.1416 | 314159.2813 | 314159265516355600.0000 |
SETFFORMAT 15,3,4 | 3.1416e+00 | 3.1416e+05 | 3.1416e+17 |
- PRINT - Output of values
- STRING - Transformation into a string
|