User data, Prosec t2n, Value = (sign)1.(mantissa) × 2 – Toshiba T2N User Manual

Page 195: Floating point arithmetics

Advertising
background image

3. User Data

182

PROSEC T2N

(7)

Floating Point Data
This is a real number which is expressed using 2 consecutive
registers (32-bit).
The registers are designated in the form A +1• A . Internally, the
following format is used. (conforms to IEEE754)

(MSB)

(LSB)

Value = (Sign)1.(Mantissa)

×

2

(Exponent-127)

The floating point data is used with the following floating point
instructions. Therefore, there is no need for user to consider the
format.

Conversions (Floating point

Double-length integer)

Floating point arithmetics

Floating point comparisons

The following table shows the numerical range in which the floating
point data can be processed.

F - - - - - - - - - - - - - - - - - - - 0

         

         

Sign (0: +, 1: -)

                    

Bit positions

Exponent

(8 bits)

Mantissa (23 bits)

Register A +1

Register A

×

F

E - - - - - - 7

6 - - - - 0

Numerical Value

Expression

Remarks

3.40282

×

10

38

3.40282E38

Maximum

1.17549

×

10

-38

1.17549E-38

Nearest to 0

0

0

- 1.17549

×

10

-38

- 1.17549E-38

Nearest to 0

- 3.40282

×

10

38

- 3.40282E38

Minimum

Advertising