diff options
Diffstat (limited to '911/CH1/EX1.14.a/ex_1_14_a.sce')
-rw-r--r-- | 911/CH1/EX1.14.a/ex_1_14_a.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/911/CH1/EX1.14.a/ex_1_14_a.sce b/911/CH1/EX1.14.a/ex_1_14_a.sce new file mode 100644 index 000000000..3ce00abcd --- /dev/null +++ b/911/CH1/EX1.14.a/ex_1_14_a.sce @@ -0,0 +1,13 @@ +//example 1.14.a//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+a=237.75
+//for integral part//
+//put binary equivalents of 5(2+3), 6(3+3) and 10(7+3)//
+i=010101101010
+//for fractional part//
+//put binary equivalents of 10(7+3) and 8(5+3)//
+f=10101000
+disp('010101101010.10101000','excess 3 equivalent of 237 =')
\ No newline at end of file |