Working with AutoCAD entities
Bit encoded Data (cont.)
- So if we imagine a string of 1's and 0's in a column, we can represent any positive integer value (negatives numbers have a special bit that is means negative, stored in the farthest left bit):
143 = 1*128 + 0*64 + 0*32+ 0*16 + 1*8 + 1*4 + 1*2 + 1*1 = 10001111
82 = 0*128 + 1*64 + 0*32+ 1*16 + 0*8 + 0*4 + 1*2 + 0*1 = 01010010
1 = 0*128 + 0*64 + 0*32+ 0*16 + 0*8 + 0*4 + 0*2 + 1*1 = 0000001
0 = 0*128 + 0*64 + 0*32+ 0*16 + 0*8 + 0*4 + 0*2 + 0*1 = 0000000