OWBasic for Pocketviewer

Home INTRO Alphabetical Index

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:
1dynamically selected
2floating point
3scientific

The parameter prec controls precision.
Without any parameter the procedure switches back to standard.


FORMATV1V2V3
SETFFORMAT3.141593141593.14159e+17
SETFFORMAT 15,1,43.1423142e-053.142e+17
SETFFORMAT 15,2,43.1416314159.2813314159265516355600.0000
SETFFORMAT 15,3,43.1416e+003.1416e+053.1416e+17


  • PRINT - Output of values
  • STRING - Transformation into a string
Home INTRO Alphabetical Index