We recommend using Visual Studio 2017

operator MOD


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at operator MOD.

Returns the integer value of the remainder (modulo) when dividing expression1 by expression2.

expression1 MOD expression2  

Operators Reference