Define a Hexadecimal number in C#

by Joseph on Dec 12th in C#, hex, hexadecimal, integer, literal hex

This one took me a bit of searching…

To represent a literal hex number (i.e. “FF”), is like this:
int h = 0xFF;
Preface the hex # with a “0x” and it treats it as hex. Much like C++ actually…

Leave a Reply


Warning: Undefined variable $user_ID in H:\root\home\idriven-001\www\infocraftnet\wp-content\themes\worldoweb\comments.php on line 55

Powered By Wordpress Designed By Ridgey