Python

4 thoughts
last posted Sept. 24, 2016, 8:46 a.m.

1 later thought

0

More binary/string/decimal operations:

"{0:032b}".format(my_int)

Converts an int into a string of zeroes and ones (32 for 32-bit number).

int(my_string, 2)

Converts a string of zeros and ones into an integer

2 earlier thoughts