summaryrefslogtreecommitdiff
path: root/1241/CH2/EX2.28/exa2_28.sce
blob: 4fedc2dfab6baa60b8f511b606e32c14c5710569 (plain)
1
2
3
4
5
6
7
8
//Example 2-28//
//Binary to octal conversion//
x=bin2dec('1011110100011000111')
//decimal equivalent of the binary number//
a=dec2oct(x)
//octal equivalent of the decimal number//
disp(a)
//answer in octal form//