IModulusOperators<TSelf,TOther,TResult>.Modulus(TSelf, TOther) Operator

Definition

Divides two values together to compute their modulus or remainder.

C#
public static abstract TResult operator % (TSelf left, TOther right);

Parameters

left
TSelf

The value which right divides.

right
TOther

The value which divides left.

Returns

TResult

The modulus or remainder of left divided by right.

Applies to

Product Versions
.NET 7, 8, 9