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

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