ExpMod Method

Create "modulo" (%) operator that determines the remainder of "numerator" divided by "denominator". All arguments must resolve to integers. Requires server version 5.6.0+.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp Mod(
	Exp numerator,
	Exp denominator
)

Parameters

numerator  Exp
 
denominator  Exp
 

Return Value

Exp

Example

C#
// a % 10 == 0
Exp.EQ(
  Exp.Mod(Exp.IntBin("a"), Exp.Val(10)),
  Exp.Val(0));

See Also