Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbFloatToBigInt

Convert a float to a big integer value.

Declaration

CTDBRET ctdbFloatToBigInt(CTFLOAT value, pCTBIGINT pBigInt)

Description

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

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

Returns

ctdbFloatToBigInt() returns CTDBRET_OK on success, or c-treeDB API error on failure.

The possible error associated with ctdbFloatToBigInt() is:

  • CTDBRET_NULARG (4007): Null argument not valid in pStr

See also

ctdbBigIntToFloat()

TOCIndex