English
Language : 

NSB8 Datasheet, PDF (98/158 Pages) List of Unclassifed Manufacturers – BASIC interpreter for Z80 family
grifo®
ITALIAN TECHNOLOGY
HERE IS A GAP:
2
because the field, specified as 10 positions in width, is more than large enough for the 1 digit number
2.
DECIMAL PLACES
In the case of floating point and E format numbers, you may also decide how many decimal places
are to be displayed when a formatted number is printed. For example, the floating point format %7F2
will put numbers from -999.99 to 9999.99 in dollars and cents form, with only two digits to the right
of the decimal point:
-302.63
51.00
987.12
1234.56
(The field is 7 positions wide)
Note that, if the number is an integer, zeroes are used to fill the decimal positions. Suppression of
those trailing zeroes will be discussed later.
If a number to be printed has more decimal places than the format specification indicates, the value
printed is the number rounded to the indicated number of digits.
Here are the allowable formats (in the following, n and m stand for integer constants):
MODEL
nFm
NAME
F format
EFFECT
Each subsequent numeric value in the PRINT list will be printed in an
n character field, right justified, with m digits to the right of the
decimal point.
nI
I format Each subsequent numeric value in the PRINT list will be printed in an
n character field, right justified, provided they are integers (have no
fractional part). If a value to be printed under this format is non
integer, a FORMAT ERROR will occur.
nEm
E format Subsequent numeric values in the PRINT list will be printed in
scientific notation in an n character field, right justified, with m digits
to the right of the mantissa decimal point.
A format specification which consists only of a percent sign specifies a return to free format.
All numeric values in a PRINT list are printed using the new format specification until a subsequent
format specification appears in the list, or until the end of the data/format list itself. Note that the
printing of numbers in subsequent PRINT statements will not usually be affected by format
specifications in previously executed PRINTs. In particular, for the two lines:
10 PRINT %3I, A, B, C
20 PRINT D
All values in line 10 will be printed according to the 31% format, but D (in line 20) will be printed
using free format. The format specification in line 10 can affect only values which line 10 itself prints.
Page 86
NSB8
Rel. 5.10