diff options
Diffstat (limited to '887/CH7/EX7.3')
-rwxr-xr-x | 887/CH7/EX7.3/7_3.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/887/CH7/EX7.3/7_3.sce b/887/CH7/EX7.3/7_3.sce new file mode 100755 index 000000000..b56e34b69 --- /dev/null +++ b/887/CH7/EX7.3/7_3.sce @@ -0,0 +1,9 @@ +clc
+//ex7.3
+N=343.392;
+//convert the integer and decimal parts into binary form separately
+B_1='101010111'; //for 343 from ex7.1
+B_2='0.011001'; //for 0.392 from ex7.2
+//combining these two
+B='101010111.011001'; //for N, given number
+disp(B,'binary form of 343.392')
|