We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Hex to Boolean (Read 750 times)
Hex to Boolean
Nov 14th, 2009, 12:36am
 
Hi,
I want to take a hex number ie 0xef, and convert it into a boolean number which i can then index through to read the bits.
Do i need to convert this into a string to be able to index the bits?
I've tried a couple of things but with no success!

Thanks for your help.

Pete
Re: Hex to Boolean
Reply #1 - Nov 14th, 2009, 1:08am
 
Presumably you mean binary and not boolean
Re: Hex to Boolean
Reply #2 - Nov 14th, 2009, 3:14am
 
Yer i suppose I do!
Any ideas on how to reference the bits of a byte?

Pete
Re: Hex to Boolean
Reply #3 - Nov 14th, 2009, 6:55am
 
Look at Bitwise Operators in reference page.
Page Index Toggle Pages: 1