Public Member Functions | |
| void | accumulate (const VNumeric *from) |
| Adds another VNumeric to this VNumeric. | |
| void | add (const VNumeric *a, const VNumeric *b) |
| int | compare (const VNumeric *from) const |
| Compares this (signed) VNumeric to another. | |
| int | compareUnsigned (const VNumeric *from) const |
| Compares this (unsigned) VNumeric to another. | |
| bool | copy (ifloat value, bool round=true) |
| Copy data from a floating-point number. | |
| void | copy (const VNumeric *from) |
| Copy data from another VNumeric. | |
| void | div (const VNumeric *a, const VNumeric *b) |
| bool | equal (const VNumeric *from) const |
| Indicates whether some other VNumeric is equal to this one. | |
| void | incr () |
| void | invertSign () |
| Inverts the sign of this VNumeric (equivalent to multiplying this VNumeric by -1). | |
| bool | isNeg () const |
| Indicates if this VNumeric is negative. | |
| bool | isNull () const |
| Indicates if this VNumeric is the SQL NULL value. | |
| bool | isZero () const |
| Indicates if this VNumeric is zero. | |
| void | mul (const VNumeric *a, const VNumeric *b) |
| void | setNull () |
| Sets this VNumeric to the SQL NULL value. | |
| void | setZero () |
| Sets this VNumeric to zero. | |
| void | shiftLeft (unsigned bitsToShift) |
| void | shiftRight (unsigned bitsToShift) |
| void | sub (const VNumeric *a, const VNumeric *b) |
| ifloat | toFloat () const |
| Convert the VNumeric value into floating-point. | |
| void | toString (char *outBuf, int olen) const |
| VNumeric (uint64 *words, int32 precision, int32 scale) | |
| Create a VNumeric with the provided storage location, precision and scale. | |
Create a VNumeric with the provided storage location, precision and scale.
words parameter
| int Vertica::VNumeric::compare | ( | const VNumeric * | from | ) | const [inline] |
Compares this (signed) VNumeric to another.
| int Vertica::VNumeric::compareUnsigned | ( | const VNumeric * | from | ) | const [inline] |
Compares this (unsigned) VNumeric to another.
| bool Vertica::VNumeric::copy | ( | ifloat | value, | |
| bool | round = true | |||
| ) | [inline] |
Copy data from a floating-point number.
| value | The source floating-point number | |
| round | Truncates if false; otherwise the numeric result is rounded |
| void Vertica::VNumeric::copy | ( | const VNumeric * | from | ) | [inline] |
| ifloat Vertica::VNumeric::toFloat | ( | ) | const [inline] |