Constants; Integer Constants; Single Precision Real Constants; Double Precision Real Constants - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

Constants
1. Integer constants
Integers between -32768 and +32767 with no decimal
point or fraction.
Examples
>10 A% = 365
>20 B% = -123*15
>30 PRINT A% + B%
>40 END
>RUN
-11980
2. Single precision real constants
7-digit numbers (for display only 6 digits) between -
1.7 x 10
following three ways:
1.7 x 10 that are expressed in the
Example: 1.234567
1) Numbers up to 7-digit
and 6 digits are displayed.(1.23457 is displayed)
2) Number with an exponent (E)
Example: 1234567E-6
(1234567 x 10 )
Example: 1.234567!
3) Number with a suffix !
3. Double precision real constants
16-digit numbers between -1.7 x 10
-
are expressd in the following three ways:
1.7 x 10 that
1) Numbers of 8-digit and more Example: 12345678
2) Numbers with a exponent (D)
Example: 1234567D7
(1234567 x 10 )
Example: 12345#
3) Numbers with a suffix #
3-14

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents