3. Instructions
478
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z /F
• If the absolute value of the result is greater than the maximum value that can be expressed as
floating-point data, the Overflow Flag will turn ON and the result will be output as ±∞.
• If the absolute value of the result is less than the minimum value that can be expressed as floating-
point data, the Underflow Flag will turn ON and the result will be output as 0.
z Operation rules
The result of an operation is output as shown below depending on the combination of floating-point
data.
z FLOATING-POINT ADD (+F)
Note 1 The results could be zero (including underflows), a numeral, +∞, or –∞.
2 With CJ1H-CPU@@H-R CPU Units, an undetermined value will be output.
ER The Error Flag will be turned ON and the instruction will not be executed.
z FLOATING-POINT SUBTRACT (–F)
Note 1 The results could be zero (including underflows), a numeral, +∞, or –∞.
2 With CJ1H-CPU@@H-R CPU Units, an undetermined value will be output.
ER The Error Flag will be turned ON and the instruction will not be executed.
Augend
Addend 0 Numeral +∞ –∞ NaN
0 0 Numeral +∞ –∞
Numeral Numeral See note 1.
+∞
(See note 2.)
–∞
(See note 2.)
+∞ +∞
+∞
(See note 2.)
+∞
ER
–∞ –∞
–∞
(See note 2.)
ER –∞
NaN ER
Minuend
Subtrahend 0 Numeral +∞ –∞ NaN
0 0 Numeral +∞ –∞
Numeral Numeral See note 1.
+∞
(See note 2.)
–∞
(See note 2.)
+∞
–∞
(See note 2.)
–∞
(See note 2.)
ER
–∞
–∞ +∞ +∞ +∞
ER
NaN ER
R+1
R
÷
Dd
Dividend (floating-point data, 32 bits)
Dd+1
Dr
Divisor (floating-point data, 32 bits)
Dr+1
Result (floating-point data, 32 bits)