Crates.io | numrepr |
lib.rs | numrepr |
version | 0.1.0 |
source | src |
created_at | 2018-09-08 18:05:06.849135 |
updated_at | 2018-09-08 18:05:06.849135 |
description | Show representation of numbers in commonly used numeral systems. |
homepage | https://gitlab.com/zetok/numrepr |
repository | https://gitlab.com/zetok/numrepr |
max_upload_size | |
id | 83637 |
size | 49,143 |
numrepr shows representation of numbers in commonly used numeral systems.
Supported numeral systems:
$ numrepr $RANDOM
0b111111111 0o777 511 0x1ff
$ numrepr $RANDOM
0b10011000101110 0o23056 9774 0x262e
$ numrepr 0b1111_0000_1111 0o750 1_234_567_890 0xdeadbeef
0b111100001111 0o7417 3855 0xf0f
0b111101000 0o750 488 0x1e8
0b1001001100101100000001011010010 0o11145401322 1234567890 0x499602d2
0b11011110101011011011111011101111 0o33653337357 3735928559 0xdeadbeef
The easiest way is to use Cargo
:
cargo install numrepr
If your distribution has been updated in recent years, it is very likely that
Cargo
is already available. However if that's not the case, you can use
Nix package manager to get some newer stuff. Or just install Cargo
without
using package manager. Whatever floats your boat.
In case of newer version, updating is almost like installing:
cargo install --force numrepr
Licensed under GPLv3+. For details, see LICENSE.