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