Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Binary Number Operations

Status
Not open for further replies.

WoundEdGoat

Programmer
May 10, 2002
39
0
0
CA
Does VB .NET have any built in support for working with binary numbers or would I have to write code for it myself?

What I'm looking to do is take a pair of hex numbers (EG, &H1F [binary 11111] and &H5 [binary 101]) and merge them into &HFD [binary 11111101] and the easiest way I know of is to use binary mathematics, however I found that there is no Binary Literal support for integers.
 
Ah heck. I can't explain it good enough. I'll just write myself a class to deal with what I need to do. Thanks anyway.
 
yeah. I realized a few minutes after I posted my initial post that I could do it that way, but I still think for what I need to do that working with base 2 would be much easier. I dunno. I'll have to think about what I really need to do some more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top