Panasonic FP7 Series Command Reference Manual page 570

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

11.24 DISF (Separation of Mantissa and Exponent of Single-precision or
Double-precision Real Number Data)
Outline of operation
● This instruction separates the floating point real number data stored in the area starting with
[S] into mantissa and exponent according to the operation unit [i].
● The mantissa is stored in the area starting with [D1] and the exponent in the area starting
with [D2].
Conversion example
Example 1) Operation units: Single-precision real number (SF) (positive real
number)
[i]...SF
[S]...DT10
[D1]...DT2
DT10・DT11
* 7.0 = 0.875 x (the cube of 2)
Example 2) Operation units: Double-precision real number (DF) (positive real
number)
[i]...DF
[S]...DT4
[D1]...DT20
DT4・DT7
40.00000000000
* 40.0 = 0.6250 x (the sixth power of 2)
Example 3) Operation units: Single-precision real number (SF) (negative real
number)
[i]...SF
[S]...DT10
[D1]...DT2
DT10・DT11
* -7.0 = (-0.875) x (the cube of 2)
Example 4) Operation units: Double-precision real number (DF) (negative real
number)
[i]...DF
[S]...DT4
[D1]...DT20
DT10・DT11
-40.00000000000
* -40.0 = (-0.6250) x (the sixth power of 2)
11-50
[D2]...DT4
7.000000
[D2]...DT28
[D2]...DT4
-7.000000
[D2]...DT28
DT0・DT1
0.000000
0.875000
DT2・DT3
DT4・DT5
DT20・DT23
0.62500000000
DT24・DT27
0.00000000000
DT28・DT29
DT0・DT1
0.000000
DT2・DT3
-0.875000
DT4・DT5
DT20・DT23
-0.62500000000
DT24・DT27
0.00000000000
DT28・DT29
(Mantissa)
(Exponent)
3
(Mantissa)
(Exponent)
6
(Mantissa)
(Exponent)
3
(Mantissa)
(Exponent)
6
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents