Informatiker Board (http://www.informatikerboard.de/board/index.php)
- Themengebiete (http://www.informatikerboard.de/board/board.php?boardid=1)
-- Technische Informatik (http://www.informatikerboard.de/board/board.php?boardid=7)
--- Interpretation von Bits (http://www.informatikerboard.de/board/thread.php?threadid=1110)
Geschrieben von paco89 am 18.12.2011 um 04:23:
Interpretation von Bits
hallo, ich hätte da folgende frage:
a) gegeben sei x durch die folgende Binärkodierung : 10010111
welche zahl repräsentiert x im 1er-, im 2er-Komplement und als vorzeichenlose zahl?
also als 1er-Komplement habe ich folgendes ausgerechnet:
10010111 = -K_1(x) = - (01101000) = -104
als 2er-Komplement :
10010111 = - (K_1(x) + 1) = -( (01101000) +1) = -105
als vorzeichenloses zahl hab ich das so verstanden, dass die 1 ganz vorne links nicht als das minus-vorzeichen interpretiert werden soll. also:
als vorzeichenlose zahl:
10010111 = 2^0 +2^1+2^4+2^7= 151
sind meine berechnungen richtig?
Geschrieben von Karlito am 20.12.2011 um 19:25:
Hallo,
alles richtig!
VG,
Karlito
Forensoftware: Burning Board, entwickelt von WoltLab GmbH