EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 159

Radio Shack TRS-80 Model 4
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
..
~
Single
Precision
(General
Purpose,
Full Numeric
Range)
Single-precision numbers can include
up
to seven significant digits,
and can represent normalized values* with exponents up to 38,
Le.,
numbers
in
the range:
[ - 1
X
10
38
, - 1 x 10
~
38]
[1
X
10
38
,1 x
10
-
38]
If a number is raised to a power greater than 38,
an
"Overflow" error
occurs.
If it is raised to a power lower than -
38,
no errors are
generated and program execution continues.
A single-precision value requires four bytes of memory for storage.
BASIC assumes a number is single precision if you do not specify the
level of precision.
*
In
this manual, normalized value
is
one
in
which exactly one digit
appears to the left of the decimal point. For example, 12.3 expressed
in
normalized form is 1.23 x
10.
For example:
10.001
-200034
1.774E6
6.024E-23
123.4567
can all be stored
as
single-precision values. But even though BASIC
stores a number with
up
to seven digits of precision, when printing it,
only six digits are shown.
NOTE: When used
in
a decimal number, the symbol E stands for
"single-precision times
10
to the power of
...
" Therefore 6.024E - 23
represents the single-precision value:
6.024 x
10-
23
Double
Precision
(Maximum Precision,
Slowest
in
Computations)
Double-precision numbers can include up to 16 significant digits, and
can represent values
in
the same range as that for single-precision
numbers. A double-precision value requires eight bytes of memory for
storage. Arithmetic operations involving at least one double-precision
number are slower than the same operations when all operands are
single precision or integer.
For example:
1010234578
-8.7777651010
3.141592653589793
8.00100708012
can all be stored as double-precision values.
NOTE: When used
in
a decimal number, the symbol 0 stands for
"double precision times
10
to the power of
...
" Therefore
2-31

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals