From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 273/CH25/EX25.9/ex25_9.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 273/CH25/EX25.9/ex25_9.sce (limited to '273/CH25/EX25.9/ex25_9.sce') diff --git a/273/CH25/EX25.9/ex25_9.sce b/273/CH25/EX25.9/ex25_9.sce new file mode 100755 index 000000000..b369967b1 --- /dev/null +++ b/273/CH25/EX25.9/ex25_9.sce @@ -0,0 +1,14 @@ +clc;clear; +//Example 25.9 +//calculation of quotient of two binary numbers + +//given values +X='1101001';//divident +Y='101';//divisor + +//calculation +x=bin2dec(X);//decimal equivalent +y=bin2dec(Y);//decimal equivalent +z=x/y; +Z=dec2bin(z); +disp(Z,'quotient of the given binary numbers with last two digits in fractional part is ') -- cgit