1. Integer Arithmetic
2.Real
Floating Point Arithmetic
word
| 1 | 2 | 3 | 4 | 5 |
word is a memory location
Real no. consist of 2 combinations:-
1.mantissa,
2.Exponent.
Mantissa
<1 . < .1
(1).If a no. is greater then one do left left shift (+).
(2).If a no. is less then one do right shift (-).
43.86×106
43.86×E 6
(1) 837.149 E 4
= . 83714 E 7
.| 8 | 3 | 7 | 1 | 4 | 9 | E | 7 |
(2) .0004378 E 8
= .4378 E 5
.| 4 | 3 | 7 | 8 | E | 5 |
(3) 4296.632 E 2
= .4296632 E 6
.| 4 | 2 | 9 | 6 | 6 | 3 | 2 | E | 6|
(4) .00004318 E 9
= .4318 E 5
.| 4 | 3 | 1 | 8 | E | 5 |
(5) 1.69 E 2
=.169 E 3
.| 1 | 6 | 9 | E | 3 |
No comments:
Post a Comment