Radio Shack CTR-118 User Manual Page 47

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 46
4-3
DEFSNG
letter range
Causes any variable beginning with a letter in the specified range to be
stored and treated as single precision, unless a type declaration character is
added. Single precision variables and constants are stored with 7 digits of
precision and printed out with 6 digits of precision. Since all numeric
variables are assumed to be single precision unless DEFined otherwise, the
DEFSNG statement is primarily used to re-define variables which have
previously been defined as double precision or integer.
Example:
100 DEFSNG I,W-Z
Causes variables beginning with the letter I or any letter W through Z to be
treated as single precision. However, I% would still be an integer variable,
and I# a double precision variable, due to the use of type declaration
characters.
See
DEFINT, DEFDBL,
and Chapter 1, "Variable Types".
DEFDBL
letter range
Causes variables beginning with any letter in the specified range to be stored
and treated as double-precision, unless a type declaration character is added.
Double precision allows 17 digits of precision; 16 digits are displayed when a
double precision variable is PRINTed.
Example:
10 DEFDBL S-Z, A-E
Causes variables beginning with one of the letters S through Z or A through
E to be double precision.
DEFDBL is normally used at the beginning of a program, because it may
change the meaning of variable references without type declaration
characters.
See
DEFINT, DEFSNG,
and Chapter 1, "Variable Types".
Page view 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 195 196

Comments to this Manuals

No comments