EvilZone
Encyclopedia Galactica => Science => : Kulverstukas November 30, 2014, 11:25:23 AM
-
How do you represent 2635 in 8bit binary? I guess you can't - it's too big for 8bits (127)?
-
8 bits is 1 byte which has a max of 255. A integer is 4 bytes (32 bits).
-
Sure you can. All you have to do is destroy the typical representation of 1s and 0s. If you're willing to sacrifice being able to represent other numbers/information you could make 8bits represent whatever you want. Remember even binary is simply an abstraction of information, and abstractions can change. You'd likely lose interoperability or require a translation mechanism of some sort.
-
The max number that can be representable in 8 bit is 256 so it's impossible.
-
The max number that can be representable in 8 bit is 256 so it's impossible.
Maybe you should have read Stackprotectors post first. pow( 2, 8 ) is 256.. thats correct. But it only means that one byte (8 bits) can represent 256 different values which are 0 - 255 (cause 0 is a value you have to count, too). Necroing an old thread just to provide wrong information isn't such a good start, is it? :P
-
The max number that can be representable in 8 bit is 256 so it's impossible.
(http://i.imgur.com/TjMkEv9.jpg)
-
</thread>