summaryrefslogtreecommitdiff
path: root/991/CH24/EX24.2/Example24_2.sce
blob: bfb874ad8e136b457d06e3e50663177f88d1e1ae (plain)
1
2
3
4
5
6
7
8
//Example 24.2. convert octal number to decimal.
clc
d=oct2dec(["444"])
disp(d,"(i) octal 444 = decimal")
d1=oct2dec(["237"])
disp(d1,"(ii) octal 237 = decimal")
d2=oct2dec(["120"])
disp(d2,"(iii) octal 120 = decimal")