I predict that this post will get approximately 01000011100101100000000000000000 upvotes
I predict that this post will get approximately 01000011100101100000000000000000 upvotes
I predict that this post will get approximately 01000011100101100000000000000000 upvotes
Don't be irrational
But floating-point notation also can't precisely represent irrational numbers...
For those who are curious, that's the IEEE 754 representation of the number 300.
Sigh, and I wanted to reply with
It's over 01000110000011001010000000000000!
Man that’s a big factorial
I have to chose between 9000 and Anakin, hard
That was a very good guess!
What? Why?
Each section of the binary number represents a different component needed to construct the number 300. It uses clever math to be able to represent decimals. It's like asking you whether a number is positive or negative, then the position of the decimal point, then what the digits are.
Specifically…
The first 0 means the number is positive. The number formed by the next eight bits (the exponent) and the number from the remaining bits (the mantissa) multiply to get 300.
The exponent bits choose the value of N in the formula 2N-127 . For the mantissa, we start with the number 1, then each "1" bit starting from the left adds to it 0.5, then 0.25, and so on. Specifically, we have 28×1.171875.
FYI OP, Discord breaks external image links after a pretty short period.
For future generations:
I mean it's fine for me, but if it's broken for others I'll just use this one then.
For future people here. They'll disable the link after a few days. When taking things off discord you have to now download the image, they no longer want to host things.
Honestly, as far as fresh takes on memes go, I loved that one quite a bit
Have had too many debates with senior programmers who don't understand why multiplying by 0.1 doesn't work.
"It works in
<favorite language>
, why doesn't it work in<not favorite language>
?"BigDecimal go brrrr
Where's my Lil'Endian ?
The weirdest part of learning about floating point was suddenly knowing how to use a slide rule.
someone xor this mfr rn fr
I'm doing my part
Such binary thinking.
// what the fuck?