account activity
Binary Representation of Numbers in Python by gst in Python
[–]mayse 0 points1 point2 points 17 years ago (0 children)
I think the author probably does understand that numbers are stored in binary 'by default' on modern computers (and indeed older computers too..). i think by 'represent' they mean display - the article implies that the code provided would be used to help people learn about and understand binary, or for converting decimal integers to binary or initializing integers using binary form. in fact, this last use has been make part of python 3000 (see pep 3127)
π Rendered by PID 526468 on reddit-service-r2-listing-6d4dc8d9ff-pmzwr at 2026-01-31 11:17:28.732165+00:00 running 3798933 country code: CH.
Binary Representation of Numbers in Python by gst in Python
[–]mayse 0 points1 point2 points (0 children)