Skip to main content

Integer conversion utility.

Project description

A tiny command line utility for converting integers between bases.

int accepts an integer in its [b]inary, [o]ctal, [d]ecimal, or he[x] 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 [d]ecimal if omitted.) int also accepts multiple arguments:

$ int b1001 o777 d256 x1EA

See the module’s Github homepage (https://github.com/dmulholland/int) for further details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

int-0.4.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file int-0.4.1.tar.gz.

File metadata

  • Download URL: int-0.4.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for int-0.4.1.tar.gz
Algorithm Hash digest
SHA256 24ce66fbfe0058d681a0b78a852302a4a35bc984d0381b4d3eb041ade2e42157
MD5 0df87a9f074b295abc22670c0cb8c579
BLAKE2b-256 334f8e08eb2e8397d5fb055d511bc68c252bd5cc82679e8ce88bc0040fa82059

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page