Skip to main content

Integer conversion utility.

Project description

A handy 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 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.

See the module’s Github homepage 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-1.1.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for int-1.1.1.tar.gz
Algorithm Hash digest
SHA256 64841895b95e6f3dc81a7f0725f3b184a27b8b2c1904c584c9cfa09c0b75cdf0
MD5 f6e95db5fc6b82d58d2b7ff26a08525d
BLAKE2b-256 3a6449d4d6a5b33dca56a5dca7d9749d8dfc1a81b2a3f874eea4fa6e8932a07b

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