Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Units.MulDiv Method

Name Parameters Description
MulDiv(Int32, Int32, Single) static value, mul, div Multiplies two integer values and then divides the result by a floating point value. The final result is cast to an integer (rounded to the nearest integer dropping the values after the decimal place).
MulDiv(Int32, Single, Int32) static value, mul, div Multiplies two integer values and then divides the result by another integer value. The final result is cast to an integer (rounded to the nearest integer dropping the values after the decimal place).