/what-the-number

Get equivalent representations of a number (decimal, hex and binary)

Primary LanguageRust

What The Number

A simple command-line tool to get equivalent representations of a number (decimal, hex and binary). Assumes a 32-bit architecture.

Installation

In the root directory run:

cargo install --path .

Usage

wtn <number>

Examples

# Decimal
wtn -123

# Hex
wtn 0xdeadbeef

# Binary
wtn 0b100010101110