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?
You’re getting down voted, but you’re right lol
Yeah, don’t know why people would describe temperature on a 0-1 scale
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”
Thermostatic shower mixers are not a thing where you live?
Yeah, I havent had a problem setting the shower temperature since I live in a house that has one.
Its great.
Not common in the US I believe, or at least I haven’t heard or seen one of them.
You just gotta “guess” what’s correct and then feel the water coming out
Weird, they are super common here in the Netherlands. Not expensive either. You just set it to a temperature and it’ll keep it constant.
Where I live, I have to spend 500 years to either get volcano-like water, or Ice Age water. Moving it one atom completely changes the temperature.
If yours uses a thermal sensing element (not just mixing blind),I’ve found running it through its full temperature range helps a lot. I suspect limescale and other crap build up on the thermal element. It adds several years on to the life of the mixer. Descaling it would likely also work, but involves removing it from the pipes, to get the cleaner in.
How using someone else’s shower works:
int temperature = rand()
Instructions
while temperature < comfortable_temperature: temperature += 1
Interpretation
while temperature < freezing: on toggle(temperature += boiling)
And then someone comes over who isn’t a programmer and they have to take a shower:
Error: cannot convert “warm” to integer
I travel a lot and I swear I’ve never seen the same shower design twice. There’s so many different freakin’ ways to deliver a stream of water to your head and they nearly all require some level of finessing. I’m assuming it all stems from an 1800s court case about patents but fuck that judge and everyone involved that day
How it really works:
mpf_t temperature;
If confused...
It’s arbitrary sized floating precision number provided in LibGMP and you can find more information about mpf_t here.
I guess there’s not enough water to use a float unless you’re in a bathtub.
Temperature would never be false so this is pretty stupid