I've googled this but possibly typing in the wrong thing.
I see hexadecimal numbers knocking about such as 3A and 0x3A, but what does the leading 0x mean? I read somewhere it means the number is signed, but converting a negative decimal to hex in calc doesn't produce a hexadecimal number with the leading 0x.
Any points much appreicated.
It's just a convention, used in C and C-like languages, to distinguish between different bases, e.g. 0x10
(hex) versus 10
(decimal) versus 010
(octal) versus 0b10
(binary).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With