Exp.ToFloat 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: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
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