EasyManua.ls Logo

Mitsubishi QD51 - Page 28

Mitsubishi QD51
688 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...
2 - 11 2 - 11
MELSEC-Q
2 THE BASICS OF AD51H-BASIC
(4) Hexadecimal Constants
A hexadecimal number (0 through 9, A through F) is preceded by &H.
Example
&H76 • • • • • 118
&H32F • • • • • 815
(5) Octadecimal Constants
An octadecimal number (0 through 7) is preceded by &0 or &.
Example
&0347 • • • • • 231
&1234 • • • • • 668
2.7.3 Single-precision and double-precision numeric constants
Fixed decimal point constants and floating-point constants can be either single
precision or double precision. Single-precision constants are stored in a memory with
an accuracy of 7 significant digits. Double-precision constants are stored in a memory
with an accuracy of 16 significant digits.
(1) Single-precision constants are numeric constants that can be categorized into one
of the following:
(a) Constants with 7 or less significant digits
(b) Constants expressed in exponential format using E
(c) Constants that are followed by an exclamation mark (!)
(2) Double-precision constants are numeric constants that can be categorized into
one of the following:
(a) Constants with 8 or more significant digits
(b) Constants expressed in exponential format using D
(c) Constants that are followed by a number sign (#)
Example
Single-precision constants
Double-precision constants
46.8 345692811
-7.09E-06 -1.09432D-06
3489.0 3489.0#
22.5! 7654321.1234

Other manuals for Mitsubishi QD51

Related product manuals