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 --- 275/CH8/EX8.8.17/Ch8_8_17.sce | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 275/CH8/EX8.8.17/Ch8_8_17.sce (limited to '275/CH8/EX8.8.17/Ch8_8_17.sce') diff --git a/275/CH8/EX8.8.17/Ch8_8_17.sce b/275/CH8/EX8.8.17/Ch8_8_17.sce new file mode 100755 index 000000000..a55db7156 --- /dev/null +++ b/275/CH8/EX8.8.17/Ch8_8_17.sce @@ -0,0 +1,10 @@ +clc +clear +disp("Example 8.17") +printf("\n") +disp("convert the following hexadecimael numbers to decimal") +disp("a)FACE b)31C c)CAD") +//this progra, converts only integer part to decimal +Hdec='FACE' +dec=hex2dec(Hdec); +printf("decimal=%d",dec) \ No newline at end of file -- cgit