Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SANumeric::operator =

SANumeric &operator = (double d);

SANumeric &operator = (const SAChar *s);

SANumeric &operator=(sa_int64_t iVal);

SANumeric &operator=(sa_uint64_t uVal);

Parameters

d.    A double value to initialize SANumeric object.
s.    A string to initialize SANumeric object.
iVal.    A sa_int64_t value to initialize SANumeric object.
uVal.    A sa_uint64_t value to initialize SANumeric object.

Return value

operator = reinitializes an existing SANumeric object with new data.

First overload of operator= converts double value to SANumeric value.

Second overload tries to convert string value (const SAChar* ) to SANumeric value. If the conversion is possible, operator = reinitializes an existing SANumeric object. If conversion is impossible, operator = throws an exception.

The last two overload of operator= converts sa_int64_t  or sa_uint64_t value to SANumeric value.

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.