Syntax str = dec2hex(d)
D is a number and str is a hexadecimal string.
Example:
dec2hex( 1023)
ans =
3FF
dec2hex( 1023,6)
ans =
0003FF
Above ~
The landlord said that 10 was converted into 16, not from decimal to octal.
And the mathematical conversion from 10 to octal is different from kswuqq.
Try abc? 1 equation and 3 unknowns. We need to find a positive integer solution in the range of 1- 10. It's not that simple.
For example, when there is decimal 19, when it is converted into octal,
19/8 = 2+3
2/8 = 0 and 2
So decimal 19 = octal 23.