summaryrefslogtreecommitdiff
path: root/887/CH7/EX7.6/7_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /887/CH7/EX7.6/7_6.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '887/CH7/EX7.6/7_6.sce')
-rwxr-xr-x887/CH7/EX7.6/7_6.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/887/CH7/EX7.6/7_6.sce b/887/CH7/EX7.6/7_6.sce
new file mode 100755
index 000000000..a8b246f72
--- /dev/null
+++ b/887/CH7/EX7.6/7_6.sce
@@ -0,0 +1,9 @@
+clc
+//ex7.6
+//Given 11110110.1(binary)
+//Working outward from the binary point, we form three-bit groups ==> 11110110.1=011 110 110. 100(we have appended leading and trailing zeros so that each group contains 3 bits)
+//And the corresponding numbers for 011,110,110 and 100 in octal system are 3,6,6 and 4
+disp('The octal representation of 11110110.1(binary) is 366.4')
+//Now we form four-bit groups appending leading and trailing zeros as needed ==> 11110110.1=1111 0110. 1000
+//The corresponding numbers for 1111,0110 and 1000 in hexadecimal system are F,6 and 8
+disp('The hexadecimal representation of 11110110.1(binary) is F6.8')