Convert hexadecimal to decimal?
Hello,
I'm a little desperate.
In the computer science module, we learn about number systems. However, I can't explain the "h."
The following task is given.
Convert the following numbers from hexadecimal to decimal:
a) A1h
b) 34Ch
what does the h stand for?
Thank you in advance
The "h" indicates that the number is a hexadecimal number. As long as it contains letters, it can be guessed that way, but "11," for example, can be both a decimal and a hexadecimal number (and in many other number systems, such as binary).
So could I ignore the h here for the calculation?
Yes. The h isn't a digit in the hexadecimal system either.
The h in A1h indicates hexadecimal numbers, especially in assembly languages.
In C-like languages, 0xA1 is a hexadecimal number.
The prefix 0x and the suffix h are used particularly in programming, while the dollar prefix is used in assembly language for certain processor families.
https://www.ionos.de/digitalguide/server/knowhow/hexadezimalsystem/
This is just the designation of the number system.
12h means: 12 hexadecimal, so 18 d = 18 decimal.
Otherwise you wouldn't know how to interpret "12".