summaryrefslogtreecommitdiff
path: root/Working_Examples/293/CH11/EX11.2/eg11_2.sce
blob: 215862003a8c8378c41f7342d4b7de6f5244bffa (plain)
1
2
3
4
5
6
7
8
9
10
11
//a
N8 = '432'; //octal number
N = oct2dec(N8); //decimal representation of N8
disp("a")
disp(N,"decimal equivalent of 432 = ")

//b
N16 = 'C4F'; //hexadecimal number 
N = hex2dec(N16); //decimal representation of N16
disp("b")
disp(N,"decimal equivalent of C4F = ")