Skip to main content

Integer conversion utility.

Project description

Int is a handy command line utility for converting integers between bases. It 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 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-2.1.0.tar.gz (2.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: int-2.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for int-2.1.0.tar.gz
Algorithm Hash digest
SHA256 afd9463065b2de648f16dfa620c377e3bc60d4dc82e9ce027d697f738c54f372
MD5 56a2e27e0efd2ad35d630c3bd5b9bad0
BLAKE2b-256 bf15fdd052e35f850e316deddff1214ea719a686f815d7165894f38b3dee01f5

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