共用方式為


Single.IModulusOperators<Single,Single,Single>.Modulus 運算子

定義

將兩個值分割在一起,以計算其模數或餘數。

 static float System.Numerics.IModulusOperators<System.Single,System.Single,System.Single>.operator %(float left, float right) = System::Numerics::IModulusOperators<float, float, float>::op_Modulus;
static float IModulusOperators<float,float,float>.operator % (float left, float right);
static member ( % ) : single * single -> single
 Shared Operator Mod (left As Single, right As Single) As Single Implements IModulusOperators(Of Single, Single, Single).op_Modulus

參數

left
Single

除法的值 right

right
Single

除以 left 的值。

傳回

除以 的 leftright 模數或餘數。

實作

適用於