CTBIGINT is a 64-bit signed integer type. Today most C compilers are capable of dealing with 64-bit integers. In the Windows operating system, Borland, Microsoft and Watcom use a __int64 type to represent native 64-bit integers, while in other operating systems such as Unix and Linux, 64-bit integers are represented as long long types.
The following set of functions converts of CTBIGINT into other c-treeDB types.
Note: Conversions to CTBIGINT in C# use a constructor in the format: CTBigint(const [CT type]& value) and are represented below as CTBigint([CT type]).
Method |
Operation |
---|---|
AsLong |
Convert a CTBIGINT value to a long (32-bit signed integer). If the CTBIGINT value is too large for the conversion, AsLong() returns CTDBRET_OVERFLOW or CTDBRET_UNDERFLOW errors. |
AsFloat |
Convert a CTBIGINT value to CTFLOAT. |
AsString |
Convert a CTBIGINT value to string. |
CTBigint(CTString) |
Convert a string to CTBIGINT value. |