Int32.IModulusOperators<Int32,Int32,Int32>.Modulus(Int32, Int32) Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Divides two values together to compute their modulus or remainder.
static int System.Numerics.IModulusOperators<System.Int32,System.Int32,System.Int32>.operator %(int left, int right) = System::Numerics::IModulusOperators<int, int, int>::op_Modulus;
C#
static int IModulusOperators<int,int,int>.operator %(int left, int right);
static member ( % ) : int * int -> int
Shared Operator Mod (left As Integer, right As Integer) As Integer Implements IModulusOperators(Of Integer, Integer, Integer).op_Modulus
- left
- Int32
The value that right
divides.
- right
- Int32
The value that divides left
.
The modulus or remainder of left
divided by right
.
Product | Versions |
---|---|
.NET | 7, 8, 9 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: