num

command
v0.0.0-...-c7b4ba4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2021 License: Unlicense Imports: 6 Imported by: 0

README

num

The num tool displays the binary, octal, decimal and hexadecimal representation of numbers.

Installation

go get github.com/mewmew/playground/cmd/num

Usage

num BIN|OCT|DEC|HEX

Examples

$ num 0b111101101
bin: 0b111101101
oct: 0o755
dec: 493
hex: 0x1ED
[~]$ num 0o755
bin: 0b111101101
oct: 0o755
dec: 493
hex: 0x1ED
$ num 493
bin: 0b111101101
oct: 0o755
dec: 493
hex: 0x1ED
$ num 0x1ED
bin: 0b111101101
oct: 0o755
dec: 493
hex: 0x1ED

Public domain

The source code and any original content of this repository is hereby released into the public domain.

Documentation

Overview

num is a tool which displays the binary, octal, decimal and hexadecimal representation of numbers.

Usage: num BIN|OCT|DEC|HEX

Examples:
  num 0b111101101
  num 0o755
  num 493
  num 0x1ED

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL