this post was submitted on 17 Sep 2023
429 points (96.5% liked)

Programmer Humor

19723 readers
83 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (1 children)

Sure I can try to connect the metaphors, in a binary number system you have numbers 1 or 0 to pick from. How it applies in this scenario is that you can only have up to one slice of each size. That works because if you want two of it, you would instead replace it with a one size bigger slice that is equivalent to 2x the smaller size.

For a general understanding of floating point I suggest you learn binary first and separately, because at the end of the day it's just another way to write base-10 numbers. Floating point representation is useful because the basic principle is you pick some fraction that is so small relative to what you're measuring, so you can do most math accurately. (e.g. If I say this dwarf planet is the size of our moon and a 20 tennis balls, the tennis balls don't really change your idea of how big it is)

At the end of the day, FP is like scientific notation but with like 10 significant digits.

[–] [email protected] 0 points 1 year ago (1 children)
[–] [email protected] 5 points 1 year ago (1 children)

I ain't ChatGPT. My comment there kind of sounds like it tho.

[–] [email protected] 4 points 1 year ago

People tend to forget ChatGPT learns from people's comments, like yours.