![Omron CJ1G-CPUxx Instructions Manual Download Page 574](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491574.webp)
553
Floating-point Math Instructions
Section 3-15
Description
EXP(467) calculates the natural (base e) exponential of the 32-bit floating-
point number in S+1 and S and places the result in R+1 and R. In other words,
EXP(467) calculates e
x
(x = source) and places the result in R+1 and R.
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.
Note The constant e is 2.718282.
The following diagram shows the relationship between the input data and
result.
Flags
Precautions
The source data in S+1 and S must be in IEEE754 floating-point data format.
R+1
R
S
Source (32-bit floating-point data)
S+1
Result (32-bit floating-point data)
e
R
S: Input data
R: Result
Name
Label
Operation
Error Flag
ER
ON if the source data is not recognized as floating-point
data.
ON if the source data is not a number (NaN).
OFF in all other cases.
Equals Flag
=
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Overflow Flag
OF
ON if the absolute value of the result is too large to be
expressed as a 32-bit floating-point value.
Underflow Flag
UF
ON if the absolute value of the result is too small to be
expressed as a 32-bit floating-point value.
Negative Flag
N
OFF
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...