FLOAT

Sets or queries the format in which the data for float variables is displayed.

Read syntax diagramSkip visual syntax diagramFLOatSTDSTAndardFIXed*SCIenceHEX
STD | STANDARD | FIXED
Float variables are displayed in fixed-point (or standard) format - for example, as 145.0056. This is the initial value.
*
Float variables are displayed in the initial format (STD).
SCIENCE
Float variables are displayed in scientific format - for example, as 1.450056E+02.
HEX
Float variables are displayed in hexadecimal. Use this option to display binary floating-point variables.

If STD is selected, and the number cannot be displayed in standard format, it is displayed in scientific format.

Numbers may be entered in either fixed-point or scientific format when FIXED or SCIENCE formats are selected.

If the display format setting is not specified, the current display format for float variables is shown in a message.

Return codes

0
Operation successful
2
Keyword truncated
5
Not valid float variable display format