blob: 3ce00abcda1245aaa5265e6dea427e890b9cf788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example 1.14.a//
clc
//clears the screen//
clear
//clears all existing variables//
a=237.75
//for integral part//
//put binary equivalents of 5(2+3), 6(3+3) and 10(7+3)//
i=010101101010
//for fractional part//
//put binary equivalents of 10(7+3) and 8(5+3)//
f=10101000
disp('010101101010.10101000','excess 3 equivalent of 237 =')
|