Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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.

Release history Release notifications

History Node

2.0.0

History Node

1.2.0

This version
History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.1

History Node

1.0.0

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
int-1.1.3.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None Sep 26, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page