UI tip: maybe don't round percentages to 0% or 100%

by goranmoominon 4/18/25, 11:19 PMwith 15 comments
by lmpdevon 4/18/25, 11:28 PM

There is an inverse to this though

I sell 12-24V fridges with adjustable temperatures on them

More than a handful of times I’ve had customer returns because the fridge is ā€œbrokenā€ and when I inquire further they refuse to use a fridge which deviates from the set temperature for any amount of time (even by one or two degrees)

By giving users the affordance of knowing the exact temperature - they’re appalled to realise it’s not a magic black box, and that the compressor kicks in to bring it back to temperature, and kicks out when it reaches it

They no doubt have no issue with their domestic fridge, which does not afford them the ability to see the exact temperature, despite functioning the same under the hood

by crazygringoon 4/18/25, 11:31 PM

Might be easier not to round at all, only take the floor. Then you never get to 100% until you're actually at 100%. You never get to 50% until you're actually at 50%.

And then in terms of the 0% vs 1% thing... my preference is to show 0% but keep an animated indicator so you know it's in progress, if you don't have something else that does the same (like showing the current download speed or current frame). Showing 1% done when it's only at 0.0001% done doesn't feel quite right to me.

by PebblesHDon 4/18/25, 11:27 PM

I agree, and in the space I spend most of my time in regulatory compliance, the adage ā€˜its not done until its done’ applies, so showing 100 is almost never helpful unless it actually is absolutely complete.

Most of my reporting tools implement similar logic to the python in the article, so handy to keep around for those use cases…

by comrade1234on 4/18/25, 11:35 PM

Counting down too. My clothes washer will count down from 1 minute left to 0 minutes left and then I have to wait for a minute for it to actually reach zero. Why can’t 1 be :59 to 0 instead of 1:59 to 1? And 0 be actually zero?

Yes I sit waiting in front of the washer when I do laundry counting down the seconds. Don’t you?

by smallnixon 4/18/25, 11:37 PM

Could use some non-linear transformation to not be "stuck" too long on 1% and 99%. I.e. reaching 2% in ui while actual progress is still below 0.01.

Maybe fast in the beginning and end and slow in the middle, "ease-in-out" or the inverse with sigmoid

by ed_merceron 4/18/25, 11:32 PM

Ah yes. I vividly remember Windows file transfer dialogs saying 100% completed while clearly still hard at work doing something.