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 :
operator double converts an existing SANumericvalue to double. operator SAString allows to represent numeric value as a string without precision loss. 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 32byte 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_SIZEbyte integer is 87 D6 12 00 00 00 00 00 00
00 00 00 00 00 00 ..... 00 00 00 Problems and QuestionsIf you haven't found the answer to your questions or have some problems on using the Library, please, send email to howto@sqlapi.com. 
