summaryrefslogtreecommitdiff
path: root/2825/CH19/EX19.4/Ex19_4.sce
blob: 6026653cee84c46c5b549f83bf5773c36717ba83 (plain)
1
2
3
4
5
6
7
8
9
10
//Ex19_4 Pg-958
clc

a=1
b=1
c=0
d=1
dec=a*2^(-1)+b*2^(-2)+c*2^(-3)+d*2^(-4) //decimal output
disp("The decimal equivqlent of 0.1101 is")
disp(dec)