summaryrefslogtreecommitdiff
path: root/3809/CH23/EX23.19/EX23_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH23/EX23.19/EX23_19.sce')
-rw-r--r--3809/CH23/EX23.19/EX23_19.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3809/CH23/EX23.19/EX23_19.sce b/3809/CH23/EX23.19/EX23_19.sce
new file mode 100644
index 000000000..d7d6865c7
--- /dev/null
+++ b/3809/CH23/EX23.19/EX23_19.sce
@@ -0,0 +1,12 @@
+//Chapter 23, Example 23.19
+
+clc
+//Initialisation
+x="A013" //hex number to be convert
+
+
+//Calculation
+x1=hex2dec(x) //conversion to decimal
+
+//Results
+printf("Decimal of A013 = %d",x1)