You're viewing a single thread.
I set all 8 bits to 1 because I want it to be really true.
133 0 Reply01111111 = true
11111111 = negative true = false
93 0 Reply00001111 = maybe
47 0 Reply10101010 = I don’t know
29 0 Reply100001111 = maybe not
22 0 Reply0011 1111 = could you repeat the question
4 0 Reply00000001 00000000 00001111 10101010
1 0 Reply
Schrödingers Boolean
7 0 ReplyIs this quantum computing? 😜
1 0 Reply
What if it's an unsigned boolean?
33 0 ReplyCthulhu shows up.
25 0 Reply16 0 ReplyCommon misconception... Unsigned booleans (ubool) are always 16-bits.
3 0 ReplySuper true.
1 0 Reply
Could also store our bools as floats.
00111111100000000000000000000000
is true and10111111100000000000000000000000
is negative true.Has the fun twist that true & false is true and true | false is false .
13 0 ReplyWhy do alternative facts always gotta show up uninvited to the party? 🥳
7 0 ReplySo all this time true was actually false and false was actually true ?
4 0 ReplyDepends on if you are on a big endian or little endian architecture.
3 0 ReplyCome on man, I’m not gonna talk about my endian publicly
7 0 Reply
negative true = negative non-zero = non-zero = true.
2 0 Reply
TIL, 255 is the new 1.
Aka -1 >> 1 : TRUE
14 0 ReplyBut only if you really mean it. If not, it's a syntax error and the compiler will know.
8 0 Reply
I was programming in assembly for ARM (some cortex chip) and I kid you not the C program we were integrating with required 255, with just 1 it read it as false
11 0 ReplyYou jest, but on some older computers, all ones was the official truth value. Other values may also have been true in certain contexts, but that was the guaranteed one.
9 0 Reply