Table of Contents

Method FloorMod

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

FloorMod(int, int)

Mod operator that also works for negative m.

[Version(2, 2, 0)]
public static int FloorMod(int m, int n)

Parameters

m int

The dividend.

n int

The divisor.

Returns

int

The floor modulus of m and n.

FloorMod(float, float)

Mod operator that also works for negative m.

[Version(2, 2, 0)]
public static float FloorMod(float m, float n)

Parameters

m float

The dividend.

n float

The divisor.

Returns

float

The floor modulus of m and n.