IModulusOperators<TSelf,TOther,TResult>.Modulus(TSelf, TOther) 操作员

定义

将两个值相除以计算其模数或余数。

public:
 static TResult operator %(TSelf left, TOther right);
public static abstract TResult operator % (TSelf left, TOther right);
static member ( % ) : 'Self * 'Other -> 'Result
Public Shared Operator Mod (left As TSelf, right As TOther) As TResult

参数

left
TSelf

除法的值 right

right
TOther

除以 left的值。

返回

TResult

的模数或余数 left 除以 right

适用于