0
You need to be aware of the data type of the denominator and the divisor. When both are numerical expressions in the domain of integer numbers, the integer division occurs, obtaining the integer quotient. When at least one of them is fractional, the desired division occurs.
-- divisão inteira
SELECT 50 / 100
-- divisão fracionária
PRINT 50.0 / 100
PRINT 50 / 100.0
PRINT 1.0 * 50 / 100
Maike, in everyday life what happens is the use of variables. If the 2 variables (denominator and divisor) are "numerical expressions in the domain of the integers", simply multiply one of them by 1.0 before dividing.
– José Diz