Zahlensysteme Flashcards
Wie Konvertiert man zwischen b-adischen Zahlensystemen?
- Aufspaltung in Vor- und Nachkommateil
- Vorkommaanteil: Division des Vorkommaanteils durch Basis b
- Nachkommaanteil: Multiplikation des Nachkommaanteils mit Basis b
Additionsregeln im Binärsystem (mit Vorzeichenlosen Zahlen)
Subtraktionsregeln im Binäsystem (mit vorzeichenlosen Zahlen)
Welche Darstellungmöglichkeiten gibt es für negative Dualzahlen
- Vorzeichen-/Betrags-Zahlen (VB-Zahlen)
- 1er-Komplement-Zahlen (1K-Zahlen)
- 2er-Komplement-Zahlen (2K-Zahlen)
Wie werden Vorzeichenbehaftete Zahlen in VB-Zahlen dargestellt?
Höchstwertiges Bit (MSB) bestimmt das Vorzeichen:
* 1 = negative Zahl
* 0 = positive Zahl
restlichen Bits sind der Betrag der Zahl
Wie werden Vorzeichenbehaftete Zahlen in 1K-Zahlen dargestellt?
Negative Zahlen werden Intervertiert -> MSB bestimmt vorzeichen
* 1 = negative Zahl
* 0 = positive Zahl
Wie werden vorzeichenbehaftete Zahlen in 2K-Zahlen dargestellt
Negative Zahlen werden Interviert und mit 1 addiert -> MSB bestimtm vorzeichen
* 1 = negative Zahl
* 0 = positive Zahl
Was ist der Vorzeil von 2K-Zahlen im gegensatz zu 1K-Zahlen und VB-Zahlen
Die Null ist nicht doppelt belegt
Wie kann man von 2K-Zahlen auf binärzahlen zurückkommen?
- Positive Zahlen bleiben gleich.
- Negativen Zahlen werden invertiert und mit 1 addiert.
Wie werden zwei 2K-Zahlen addiert?
Wie vorzeichenlosen Dualzahlen
Wie werden 2K-Zahlen subtrahiert?
Wie bei vorzeichenlosen Dualzahlen
Gleitkommadarstellung