Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Negative Dualzahlen

Empfohlene Antworten

Veröffentlicht

Hallo mein erster Beitrag hier.

Ich habe eine Aufgabe: Eine Binärzahl 10101011 kann mit zwei unterschiedlichen Methoden als negative Zahl interpretiert werden. Ich soll nun jeweils den Dezimalwert bestimmen.

Mein Lösungsvorschlag wäre:

1. Mit Vorzeichen Betrag, also gleich -43

Die 1 beim MSB sagt mir, dass es sich um eine negative Zahl handeln muss. Also 0101011 = 43 --> -43

Wie müsste die 2. Methode lauten? Exzess oder B-Komplement?

Habe ich das falsch interpretiert? Wäre dankbar für eine Antwort

1. Mit Vorzeichen Betrag, also gleich -43

Das setzt aber voraus, dass das Dualsystem ein symmetrisches Zahlensystem wäre. Sprich +0 und -0 verschieden sind, da aber +0 = -0 = 0 gilt, muss daraus resultieren

[...] B-Komplement?

Da das Duasystem asymmetrisch ist, werden Dualzahlen mit dem 2er-Komplement und Vorzeichenbit dargestellt. Eine weitere Möglichkeit wäre die Floatingpoint-Darstellung nach der IEEE 754

Phil

Einer- und Zweierkomplement sind die richtigen Stichworte.

Ein etwas angestaubter Begriff ist zu diesem Thema "Zahlenkreis".

Denn alle Ganzzahlenbereiche sind so abgebildet.

im 32bit-Raum:

43 = 0x0000002B

-2147483605 = 0x8000002B

-43 = 0xFFFFFFD5

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.