51 points

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.

permalink
report
reply
18 points

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.

permalink
report
parent
reply
11 points

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

permalink
report
parent
reply
25 points

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

permalink
report
reply
9 points

Very sus

permalink
report
parent
reply
6 points

'ඞ'

permalink
report
parent
reply

Microblog Memes

!microblogmemes@lemmy.world

Create post

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, Twitter X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

Community stats

  • 14K

    Monthly active users

  • 2.2K

    Posts

  • 94K

    Comments