View Single Post
  #5 (permalink)  
Old 03-20-2008, 10:14 AM
Walle Walle is offline
Newbie
 
Join Date: Mar 2008
Posts: 27
Rep Power: 3
Walle is on a distinguished road
Default Re: Converting float to char[4]

ofc I know that a binary number will increase if you add 1 to it...I know the binary system as well as I know the decimal, hexadecimal and octal. But that is not really the answer to my question I'm afraid.

The question here wasn't how to add 1 to it, but _how_ to do binary operations (I.e. what is the _syntax_). Increasing a value was just an example.

Ok, so another example. (I'm still looking for the syntax..)

Say I have an 8-bit variable that I want to binary add with 01010101? Or I want to NOT (invert, 1's complement) it?
__________________
________________________________________________
"I'm not young enough to know everything." - Oscar Wilde
Reply With Quote

Sponsored Links