|Home||How To||Online Documentation||Support||Download||Order|
SANumeric is a subsidiary class. The SANumeric class provides support for manipulating exact numeric values with a fixed precission and scale. The class supplies data members and operators for representind numeric values without precision loss. It is useful when working with such DBMS types as DECIMAL, NUMERIC, BIGINT, etc.
To create SANumericvalue use one of the following constructors :
Data members precission, scale and sign allows to set or get the precission (the maximum number of digits), scale (the number of digits to the right of the decimal point) and sign of SANumeric object.
Data member val contains the numeric value as a 32-byte scaled integer.
For example, the base 10 number 123.4567 is scaled to an
integer 1234567, which is 12D687 in hexadecimal. The value stored in
the SA_NUMERIC_MANTISSA_SIZE-byte integer is 87 D6 12 00 00 00 00 00 00
00 00 00 00 00 00 ..... 00 00 00
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 firstname.lastname@example.org.