I have a table with a smallint column that contains percentages as whole numbers (i.e., 50, 75, 85, etc.)
When I divide this column by 100, as in
SEL
You're doing integer division. 50/100 is 0 with a remainder of 50.
You need to use floating point division.