Don’t be irrational
I predict that this post will get approximately 01000011100101100000000000000000
Submitted 1 day ago by Ragdoll_X@lemmy.world to science_memes@mander.xyz
Comments
SpaceNoodle@lemmy.world 1 day ago
ArbitraryValue@sh.itjust.works 1 day ago
But floating-point notation also can’t precisely represent irrational numbers…
SkybreakerEngineer@lemmy.world 1 day ago
But some irrational numbers are only so in base 10
SpaceNoodle@lemmy.world 1 day ago
What superior method do you propose?
Ragdoll_X@lemmy.world 1 day ago
That’s the binary representation of 300 btw
elvith@feddit.org 1 day ago
Sigh, and I wanted to reply with
It’s over 01000110000011001010000000000000!
tdawg@lemmy.world 1 day ago
Man that’s a big factorial
bloubz@lemmygrad.ml 1 day ago
I have to chose between 9000 and Anakin, hard
Tower@lemm.ee 23 hours ago
That was a very good guess!
imPastaSyndrome@lemm.ee 1 day ago
What? Why?
silverchase@sh.itjust.works 1 day ago
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 2^N - 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 2^8^×1.171875.
scrion@lemmy.world 1 day ago
Honestly, as far as fresh takes on memes go, I loved that one quite a bit
frezik@midwest.social 1 day ago
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>?”
chunkystyles@sopuli.xyz 22 hours ago
BigDecimal go brrrr
BeatTakeshi@lemmy.world 22 hours ago
Where’s my Lil’Endian ?
mindbleach@sh.itjust.works 11 hours ago
// what the fuck?
h4x0r@lemmy.dbzer0.com 22 hours ago
someone xor this mfr rn fr
LovableSidekick@lemmy.world 1 day ago
Such binary thinking.
mindbleach@sh.itjust.works 1 day ago
The weirdest part of learning about floating point was suddenly knowing how to use a slide rule.
inlandempire@jlai.lu 1 day ago
I’m doing my part
aido@lemmy.world 22 hours ago
FYI OP, Discord breaks external image links after a pretty short period.
For future generations: Image
Ragdoll_X@lemmy.world 22 hours ago
I mean it’s fine for me, but if it’s broken for others I’ll just use this one then.
scrubbles@poptalk.scrubbles.tech 20 hours ago
For future people here. They’ll disable the link after a few days.