Earlier quoted context omitted.
Right but it’s specifically not, and liable to make people think “3” is an acceptable input
Again, this is bike shedding bait. I'm going by my own experience with basic mathematics in my American education where "percent" is something you multiply a number by, and usually ranges from 0 to 1. Ex. 50% of 12 marbles is 6 (*.5, 50%). But just looking at all the different answers in the comments here means there's no consensus on a "right" way. Hence bike shedding. A decent code base should be consistent so it c…
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.