skip to navigation
skip to content

int 2.0.0

Integer conversion utility.

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.

 
File Type Py Version Uploaded on Size
int-2.0.0.tar.gz (md5) Source 2017-06-09 2KB