共用方式為


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

除以的leftright模數或餘數。

適用於