MulDiv
The MulDiv function multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value. The return value is rounded up or down to the nearest integer.
int MulDiv( int nNumber, int nNumerator, int nDenominator );
Parameters
- nNumber
- [in] Multiplicand.
- nNumerator
- [in] Multiplier.
- nDenominator
- [in] Number by which the result of the multiplication (nNumber * nNumerator) is to be divided.