Maybe I'm just an idiot, but I had trouble finding this. I hope this saves people some time...
to specify hex in c#:
long MyHexVariable = 0x40;
Printable View
Maybe I'm just an idiot, but I had trouble finding this. I hope this saves people some time...
to specify hex in c#:
long MyHexVariable = 0x40;
took me a while too..i kept trying &H4..:P too used to VB.
Well..If you have programmed in C or C++..or even javascript you would already know it by now :)
to specify in octal
you would prefix a "0"
for example
int x = 023;
I guess I never needed hex before in C/C++!?
Oh well, got it now...