blob: d7d6865c7b3b30294d073cf293dd8958acbe42e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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)
|