int e l 4.21 DESCRIPTION OF STATEMENTS USING(#.#) -- This will force MCS BASIC-52 to output all numbers using an integer and/or fraction format. The number of "#" 's before the decimal point represents the number of significant integer digits that will be printed in the fraction. The decimal point may be omitted, in which case only integers will be printed. USING may be abbreviated U. . USING (###.###), USING(######) and USING(######.##) are all valid in MCS BASIC-52. The maximum number of "#" characters is 8.
If MCS BASIC-52 cannot output the value in the desired format (usually because the value is too large) a question mark (?) will be printed to console device, then BASIC will output the number in the FREE FORMAT described below. EXAMPLE: >10 PRINT USING(##.##),1,2,3 >20 FOR I=1 TO 120 STEP 20 >30 PRINT I >40 NEXT I >RUN 1.00 2.00 3.00 1.00 21.00 41.00 61.00 81.00 ? 101 READY NOTE: The USlNG(Fx) and the USING(#.#) formats will always "align" the decimal points when printing a number. This feature makes displayed columns of numbers easy to read. USING(0) -- This argument lets MCS BASIC-52 determine what format to use.
The rules are simple, if the number is between +- 99999999 and +- .1, BASIC will display integers and fractions. If it is out of this range, BASIC will use the USING(F0) format. Leading and trailing zeros will always be suppressed. After reset, MCS BASIC-52 is placed in the USING(0) format. - 56 -