Converter

Enter a decimal number which should be converted into two's complement in binary, octal and hexadecimal format. The number has to match (\+|-)?(0|[1-9]+[0-9]*). You may also define a word length (in bits) in the second form.

Input:
Input is not a valid number!
Not valid!
Output:
binary
octal
hexadecimal
{{ result.bin }}
{{ result.oct }}
{{ result.hex }}

Motivation

The exercise of the lecture "Computer Architecture" in my course of studies was to implement a program which converts decimal numbers interpreted as ASCII strings into two's complement in binary, octal and hexadecimal representation.

App

This app was realized using Vue, a JavaScript MVVM framework, and Google's Material Design.

You can find its sourcode on Codeberg.