ExpToFloat Method

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

Definition

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

Parameters

num  Exp
 

Return Value

Exp

Example

C#
// float(2) == 2.0
Exp.EQ(
  Exp.ToFloat(Exp.Val(2))),
  Exp.Val(2.0));

See Also