Answered Binary Prefix?

cyclotis04

New member
Joined
Aug 18, 2008
Messages
2
Programming Experience
1-3
I know you can use '&H' to specify a number as hexadecimal, such as '&H00FF.' Can you, however, do the same thing for binary numbers? I was thinking something like '&B00101101,' but that doesn't seem to work.
Any ideas?
 
Last edited:
No, but you can use the Convert class to convert a binary string to different data types specifying fromBase 2, ex Convert.ToByte("00101101", 2).
 
Back
Top