summaryrefslogtreecommitdiff
path: root/991/CH24/EX24.4/Example24_4.sce
blob: f65270bcc36035fb934dee25312c66b7c14dde14 (plain)
1
2
3
4
5
6
//Example 24.4. convert hexadecimal number to decimal
clc
h=hex2dec(['4AB'])
disp(h,"(i) hex 4AB = decimal")
h=hex2dec(['23F'])
disp(h,"(ii) hex 23F = decimal")