Nov-22-2017, 05:30 AM
when a sequence of digits is prefixed with "0x" in many contexts, one of them being the int() function in python with "0" as argument 2, it means the digits that follow are base 16 (hexadecimal). likewise, a prefix of "0o" can mean octal, in many contexts, though not as many. and the prefix of just "0" will also mean octal, but only in python2 when using a base of 0 in int(). and then there is "0b" for binary.
what i am wondering is, if any of you have seen other prefixes like this for other bases such as duotridecimal (32). i'm not limiting this to just python that you have seen it in, though it is for a python project.
what i am wondering is, if any of you have seen other prefixes like this for other bases such as duotridecimal (32). i'm not limiting this to just python that you have seen it in, though it is for a python project.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.