Binary code
Blitz3D Forums/Blitz3D Beginners Area/Binary code| 
 | ||
| Can i use binary code in blitz in any way? | 
| 
 | ||
| I've actually been wondering this too, Besides the Bin functions, i don't know. | 
| 
 | ||
| What kind of binary code? Binary is just a different number representation. | 
| 
 | ||
| oh. I don't really know...I just found a website that converts text into Binary code, is there anything i can do with that? | 
| 
 | ||
| There are plenty of things you can do with that, what did you want to do with it? | 
| 
 | ||
| You could for instance use a 32 bit int, (just a regular integer) and use each of the bits there as a flag. Save yourself using a whole integer just for ON/OFF status. You therefore use 1/32 of the memory. A use or understanding of binary would help you use this i guess. | 
| 
 | ||
| Blitz has all the commands you need to create and modify values at the bit level. | 
| 
 | ||
| ;Binary: a=%10011010110 print a print bin$(a) ;Hexadecimal: b=$2E7A print b print hex$(b) |