blob: 137ecd5d6946bf6795a02500e90d13b9cb3b729a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Chapter 23, Example 23.17
clc
//Initialisation
x=7046 //decimal number to be convert
//Calculation
z1=dec2hex(x) //conversion to hex number
//Results
printf("Hex of 7046 = %s",z1)
|