Double-Precision Floating-Point Instructions - Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Double-precision Floating-point
Instructions
Double-precision Floating-point
Instructions
Data Format
Floating-point data expresses real numbers using a sign, exponent, and mantissa. When data is
expressed in floating-point format, the following formula applies.
Real number = (-1)
s: Sign
e: Exponent
f: Mantissa
The floating-point data format conforms to the IEEE754 standards. Data is expressed in 32 bits, as
follows:
Sign
Exponent
s
e
63 62
52 51
Data
s: sign
1
e: exponent
11
f: mantissa
52
Number of Digits
Fifteen digits are effective for double-precision floating-point data.
Floating-point Data
• The following data can be expressed by floating-point data:
• -
• -1.79769313486232
• 0
• 2.22507385850720
• +
• Not a number (NaN)
2.22507385850720 10 -
1.79769313486232 10
CS/CJ/NSJ Series Instructions Reference Manual (W474)
s
e-1,023
2
(1.f)
Mantissa
f
No. of bits
0: positive; 1: negative
The exponent (e) value ranges from 0 to 2,047. The actual exponent is the value remaining after 1,023
is subtracted from e, resulting in a range of -1,023 to 1,024. "e=0" and "e=2,047" express special
numbers.
The mantissa portion of binary floating-point data fits the format 2.0 > 1.f
308
10
value
-308
10
value
2.22507385850720 10 -
308
1
1
0
308
1.79769313486232 10
0
Contents
-308
-2.22507385850720
10
30
1.79769313486232
10
308
+
308
3. Instructions
3
1.0.
507

Advertisement

Table of Contents
loading

Table of Contents