also ich denke da liegt eine Verwechslung vor. Eine Dual bzw. Binärzahl ist laut Definition:
Zitat: |
eine aus einer oder mehreren Binärziffern (0 oder 1) bestehende Zahl. Jedes weitere Bit verdoppelt die Anzahl der möglichen numerischen Kombinationen. |
und die gewünschte Dezimalzahl ist eine Zahl auf der Basis von 10 - also schon eine Integer bzw. Realzahl. Und genau diese Umwandlung nimmt meine Prozedure vor. Wie man die Binärzahl darstellt, ob als String oder Array das ist natürlich Geschmacksache.
Allerdings hast du recht, negative Vorzeichen müssten noch berücksichtigt werden.