Basic programming guide – Remote Processing BASIC for the CX-10 Modbus User Manual
Page 80

BASIC PROGRAMMING GUIDE
2-71
USING
U.
Syntax:
PRINT USING (format)
PRINT U.(format)
Where: format
USING(Fn) n is the number of significant digits. A minimum of 3 significant digits are
always printed. Maximum value of n is 8.
USING(#.#) The number of # symbols determines how many significant figures of the
output value will be displayed before and after the decimal point. The
maximum total number of "#" symbols is 8. Integers (decimals truncated) are
printed when there are no "#" symbols after the decimal point or if no decimal
point is given. If a value cannot be printed in the requested format, BASIC-52
outputs a "?" and prints the value in USING(0) format.
USING(0)
The default output format for BASIC-52 floating-point values. Displayed as a
decimal integer and fraction if the value is between +/- 99999999 and +/- 0.1.
Function:
Used with PRINT to format subsequent expressions.
Mode:
Command, run
Use:
PRINT USING(F3),A
DESCRIPTION
Formatting is "remembered" until it is reset or changed.
RELATED STR
ERRORS
BAD SYNTAX - Missing # to the left of the decimal point or a space between USING and the left
parentheses.
EXAMPLE
110
PRINT USING(F3),PI*100
>run
3.14 E+2