Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbBigIntToFloat

Convert a big integer value to a float.

Declaration

CTDBRET ctdbBigIntToFloat(CTBIGINT value, pCTFLOAT pFloat)

Description

ctdbBigIntToFloat() converts a big integer value to a float. A big integer is an 8 bytes integer value. Use ctdbFloatToBigInt() to convert from a float to a big integer. Use ctdbBigIntToLong() to convert a big integer value to a LONG.

  • value [in] the big integer value (8 bytes signed integer).
  • pFloat [out] the float value.

Returns

ctdbBigIntToFloat() returns CTDBRET_OK on success, or FairCom DB API error on failure.

The possible error associated with ctdbBigIntToFloat() is CTDBRET_NULARG since a Null argument is not valid in pFloat.

See also

ctdbFloatToBigInt(), ctdbBigIntToLong()

TOCIndex