summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.5/ex_1_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH1/EX1.5/ex_1_5.sce')
-rw-r--r--911/CH1/EX1.5/ex_1_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/911/CH1/EX1.5/ex_1_5.sce b/911/CH1/EX1.5/ex_1_5.sce
new file mode 100644
index 000000000..c86b4a42f
--- /dev/null
+++ b/911/CH1/EX1.5/ex_1_5.sce
@@ -0,0 +1,17 @@
+// example 1.5/ /
+// decimal to hexadecimal conversion//
+clc
+// clears the screen //
+clear
+//clears already existing variables //
+q =0;
+b =0;
+a= 82.25
+// Enter the decimal number//
+format ( 'v' ,18)
+//increasing the precision to 18
+a= floor (a);
+h= dec2hex (a);
+// decimal to hexadecimal conversion //
+disp ('conversion of decimal given no to its hexadecimal form is :' )
+disp (h) \ No newline at end of file