blob: 612d8d5b1ad84f674a14f80bd7fa750214059b5c (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
//ex7.5
//Given 317.2 (octal)and F3A.2 (hexadecimal)
//From table 7.1 in text, corresponding octal forms of 3,1,7 and 2 are 011,001,111 and 010
disp('The binary representation of 317.2(octal) is ')
disp('011001111.010')
disp('')
//From table 7.1 in text, corresponding hexadecimal forms of F,3,A and 2 are 1111,0011,1010 and 0010
disp('The binary representation of F3A.2(hexadecimal) is ')
disp('111100111010.0010')
|