IModulusOperators<TSelf,TOther,TResult>.Modulus(TSelf, TOther) 运算符

定义

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

public:
 static TResult operator %(TSelf left, TOther right);
public static 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

除以的right模数或余数left

适用于