ss7thirty
Well-known member
I am looking to find out how to convert an integer value to binary form and traverse its bits. For example, I would like to take 15 which is a four bit number in binary 1111 = 15. How would I traverse these bits and perform the necessary operations. This is because I am going to be passing the bit data as a double (this is just how the method works in this certain API) and will need to convert it to binary because it is in fact bit data and each bit means something about the state of the application. So I have to take the large double (convertable to int) and convert it to binary and traverse the bits.
Most of my code is in C# but VB.NET should be able to do it also and this has been my best resource when I have hit walls no matter what language I was using.
How can I do this??? Please help this is very important!!!
Thanks
Most of my code is in C# but VB.NET should be able to do it also and this has been my best resource when I have hit walls no matter what language I was using.
How can I do this??? Please help this is very important!!!
Thanks