i see this in some code? Checks an int is greater then 0x80. What is 0x80? Is not an int.
Thanks
It is an integer literal - it's the hex number 80, which is decimal 128. The "0x" prefix indicates it being in hex.
For more details, look at the section 2.4.4.2 of the C# language specification: "Integer literals".
That is the hexadecimal literal for 128. It actually is an int. Any literal that starts with 0x
is a hexadecimal literal.
It's a hexadecimal number.
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