Single-Precision And Double-Precision Numeric Constants - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

2 THE BASICS OF AD51H-BASIC

2.7.3 Single-precision and double-precision numeric constants

2 - 11
(4) Hexadecimal Constants
A hexadecimal number (0 through 9, A through F) is preceded by &H.
Example
&H76
• • • • •
&H32F
• • • • •
(5) Octadecimal Constants
An octadecimal number (0 through 7) is preceded by &0 or &.
Example
&0347
• • • • •
&1234
• • • • •
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
118
815
231
668
Single-precision constants
46.8
-7.09E-06
3489.0
22.5!
MELSEC-Q
Double-precision constants
345692811
-1.09432D-06
3489.0#
7654321.1234
2 - 11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents