FairCom Corporation


4.3.96 ctdbFloatToCurrency


Convert a float value to a CTCURRENCY value.

Declaration

CTDBRET ctdbFloatToCurrency(CTFLOAT value, pCTCURRENCY pCurrency)

Description

ctdbFloatToCurrency converts a floating point value to a CTCURRENCY (8 bytes signed integer) value. Use ctdbCurrencyToFloat to convert from a float to a CTCURRENCY value.

Returns

ctdbFloatToCurrency returns CTDBRET_OK on success, or c-treeDB C API error on failure.

The possible error associated with ctdbFloatToCurrency is:

See also

ctdbCurrencyToFloat


FairCom Corporation
www.faircom.com