ExpToInt Method

Create expression that converts a float to an integer. Requires server version 5.6.0+.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp ToInt(
	Exp num
)

Parameters

num  Exp
 

Return Value

Exp

Example

C#
// int(2.5) == 2
Exp.EQ(
  Exp.ToInt(Exp.Val(2.5)),
  Exp.Val(2));

See Also