alphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 年前Int and bool walk into a barlemmy.worldimagemessage-square33fedilinkarrow-up1782
arrow-up1782imageInt and bool walk into a barlemmy.worldalphacyberranger@lemmy.world to Programmer Humor@programming.devEnglish · 2 年前message-square33fedilink
minus-square👁️👄👁️@lemm.eelinkfedilinkEnglisharrow-up51·edit-22 年前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.
minus-squareMaggiWuerze@feddit.delinkfedilinkarrow-up4·2 年前So you only shower with 1° cold water? Or could the int maybe represent something like 40°C?
minus-squaresup4rawr@lemmynsfw.comlinkfedilinkEnglisharrow-up7·2 年前but degrees aren’t integers, you can definitely also shower at 40,5°C
minus-squarejcg@halubilo.sociallinkfedilinkarrow-up3·2 年前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.
minus-square👁️👄👁️@lemm.eelinkfedilinkEnglisharrow-up3·2 年前The temperature handle is either off or maxed out in this scenario. Not the temperature.
minus-squareMaggiWuerze@feddit.delinkfedilinkarrow-up2·2 年前Yeah, that’s why it says “supposed to work”
minus-squarewieli99@sh.itjust.workslinkfedilinkarrow-up2·2 年前You’re getting down voted, but you’re right lol
minus-squareMaggiWuerze@feddit.delinkfedilinkarrow-up3·2 年前Yeah, don’t know why people would describe temperature on a 0-1 scale
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.
So you only shower with 1° cold water? Or could the int maybe represent something like 40°C?
but degrees aren’t integers, you can definitely also shower at 40,5°C
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.
The temperature handle is either off or maxed out in this scenario. Not the temperature.
Yeah, that’s why it says “supposed to work”
You’re getting down voted, but you’re right lol
Yeah, don’t know why people would describe temperature on a 0-1 scale