summaryrefslogtreecommitdiff
path: root/1241/CH2/EX2.14/exa2_14.sce
blob: 0fe88110ff8f5d6ca62e26af67034107e07cdecc (plain)
1
2
3
4
5
6
7
8
//Example 2-14//
//binary to hexadecimal conversion//
x=bin2dec('1010111010')
//decimal equivalent of the binary number//
a=dec2hex(x)
//Hex equivalent of the decimal number//
disp(a)
//answer in hexadecimal form//