FIXED
Format: FIXED expr
Supported by: COMX BASIC V1.00, Floating Point BASIC 2.2, Pecom 32 BASIC, Pecom 64 BASIC 1.0 and 4.0, Quest Super BASIC 1.4, 3.0, 5.0 and 6.0, RCA BASIC3 V1.1, Telmac SBASIC v 24.3
Similar commands: -
This statement when executed formats the printing of all numbers both floating point and integer. The value of the expression defines how many digits to the right of the decimal point will be printed. Trailing zeroes will be filled in to complete the number. If necessary, the number will be rounded. The expression must evaluate to a number between 0 and 6. If a number greater than 6 is entered BASIC reverts to its normal mode of outputting numbers. For example.
FIXED 2 PR 123
will result in
123.00FIXED 2 PR 123.567
will result in
123.57FIXED 2 PR 6E7
will result in
.60E+08FIXED 7 PR 123.50
will result in
123.5