I am building some UI for an education app displaying user progress in percentages. Have run into an issue with rounding: 0.4 rounds down to 0, but that isn't meaningful to the user who feels they have definitely completed more than 0% of their task. Ditto for 100%: 99.5% rounds up to 100%, but obviously you're only completely done when you're completely done.
I've solved this issue in a clunky programmatic way using floor() and a special condition to round up to 1 for > 0 & < 1, so this is more of a curiosity than an urgent question, as I'm not enough of a math person to know an algorithmic solution. One might say I'm neither 100% nor 0% of a math person: I know enough to know there is probably some cute and clever name for this issue, but I don't know what it is.
It seems sort of related to "banker's rounding" and sort of related to this stuff. But it's not exactly either of those things, I don't think?
In other words, when is something more than nothing, and when is everything not enough? If it helps at all, one time I tried to read Gödel, Escher, Bach, but then I read Debt by David Graeber instead.
Thanks! =)