Integer conversion utility.
Project description
Int is a simple command line utility for converting integers between bases. It accepts an integer in its [b]inary, [o]ctal, [d]ecimal, or he[x]adecimal form, then prints it out in all four bases:
$ int 64 hex: 40 dec: 64 oct: 100 bin: 01000000
You can specify the base of the input using a single letter prefix. (Defaults to decimal if omitted.) Int also accepts multiple arguments:
$ int b1001 o777 d256 x1EA
Leading zeros are ignored so integer literals in the form 0x123 are also accepted.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
int-3.1.0.tar.gz
(2.8 kB
view details)
File details
Details for the file int-3.1.0.tar.gz
.
File metadata
- Download URL: int-3.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b102750b485efb73c314e33c8d7c8e01831e0c70b10223c15c06a4d8c4c606d3 |
|
MD5 | 14c708320df4d5eb99c0ff4c03b9a45a |
|
BLAKE2b-256 | a647970579c43a3e4da415d0c5e299d957984b9d21255923b574ae959b522c25 |