Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.world

6 replies

sopuli.xyz

For those ASCIIng themselves why this works, 0x20 is 00100000 in binary, so it only flips one bit, increasing or decreasing the character's value by 32. Capital 'A' is 65 and lowercase 'a' is 97, an offset of exactly 32! The rest of the uppercase and lowercase letters follow in order.

51

Done that way completely on purpose, of course.

The numbers all have their binary value in their low nibble, too, which makes Binary-Coded Decimal completely trivial to convert into the equivalent string, or vice-versa. Nearly as easy to convert 'normal' binary numbers in either direction, too.

18

Wow that's crazy it's exactly 263,130,836,933,693,530,167,218,012,160,000,000. Wonder why increasing or decreasing by 32 makes a difference? /s

11
lemmy.world

Same energy as chr(sum(range(ord(min(str(not())))))))

25

You reached the end

NO PEDESTRIANS | Spyke