summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.6.a/ex_1_6_a.sce
blob: 8bf0d82347fd24f325495a3c559f22c2a5720890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// example 1.6 (a) / /
//conversion of octal to binary//
clc
//clears the screen//
clear
//clears all existing variables//
a=374.26;
b=floor(a);
t=oct2dec('374');
z = dec2bin (t);
disp ('binary conversion of given no is : ' )
// conversion of octal number to binary //
disp (z)
// answer in binary form//