summaryrefslogtreecommitdiff
path: root/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.2/Ex3_2.R
diff options
context:
space:
mode:
Diffstat (limited to 'Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.2/Ex3_2.R')
-rw-r--r--Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.2/Ex3_2.R6
1 files changed, 6 insertions, 0 deletions
diff --git a/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.2/Ex3_2.R b/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.2/Ex3_2.R
new file mode 100644
index 00000000..617ac2bc
--- /dev/null
+++ b/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.2/Ex3_2.R
@@ -0,0 +1,6 @@
+# Example 2 Chapter 3 Page no.: 46
+# COnversion of Hexadecimal number to Decimal number
+
+x<-'12af' #input value
+a<-strtoi(x,16L)
+cat("The Hex number 12AF is",a,"in Decimal system") \ No newline at end of file