summaryrefslogtreecommitdiff
path: root/3860/CH1/EX1.8/Ex1_8.sce
blob: 77e476d08c953ce3ff2bbbf9bc35539c924b0567 (plain)
1
2
3
4
5
//Example 1.8 Conversion from decimal number to binary number.
clc;
x = dec2bin(105); // binary equivalent of decimal number
disp('The binary number is = ');
disp(x) // answer in binary form