4 ms·
‘Per’ means ‘divided by’, ‘cent’ means 100. Units implicitly multiply, and x/100 == x*0.01. Percent is a fancy way to 0.01, just as ‘dozen’ is a fancy way to s
by systoll 6y ago
‘Per’ means ‘divided by’, ‘cent’ means 100. Units implicitly multiply, and x/100 == x*0.01.
Percent is a fancy way to 0.01, just as ‘dozen’ is a fancy way to say 12.
Percent has some strong norms around its usage (no-one buys 1200% eggs at the supermarket) but you can’t ignore the mathematical meaning.
In both cases, if someone used them as a type name, conversion to floats should involve multiplying by the unit.