Results 1 to 5 of 5

Thread: HEX in c#...

  1. #1

    Thread Starter
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327

    Talking HEX in c#...

    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;
    -scott
    he he he

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    took me a while too..i kept trying &H4..:P too used to VB.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272

    Thumbs up

    Well..If you have programmed in C or C++..or even javascript you would already know it by now

  4. #4
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272
    to specify in octal

    you would prefix a "0"

    for example

    int x = 023;

  5. #5

    Thread Starter
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327
    I guess I never needed hex before in C/C++!?
    Oh well, got it now...
    -scott
    he he he

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width