this post was submitted on 18 Aug 2023
757 points (96.2% liked)

Programmer Humor

19817 readers
61 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 49 points 1 year ago* (last edited 1 year ago) (7 children)

Shouldn't it be a float that goes between 0 and 1 instead of an int. In this situation they'd be the same thing, considering 1 would be max lol.

[–] [email protected] -3 points 1 year ago (6 children)

So you only shower with 1° cold water? Or could the int maybe represent something like 40°C?

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

but degrees aren't integers, you can definitely also shower at 40,5°C

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

Not to overdissect a meme, but it really should be an unsigned byte since that's what the digitiser would probably have as an input or output.

load more comments (4 replies)
load more comments (4 replies)