Lines Matching defs:Decimal

3584 **         signs are ignored.  Decimal points and exponential notation
3688 typedef struct Decimal Decimal;
3689 struct Decimal {
3700 ** Release memory held by a Decimal, but do not free the object itself.
3702 static void decimal_clear(Decimal *p){
3707 ** Destroy a Decimal object
3709 static void decimal_free(Decimal *p){
3717 ** Allocate a new Decimal object initialized to the text in zIn[].
3720 static Decimal *decimalNewFromText(const char *zIn, int n){
3721 Decimal *p = 0;
3822 static Decimal *decimalFromDouble(double);
3825 ** Allocate a new Decimal object from an sqlite3_value. Return a pointer
3830 ** directly into a Decimal. For SQLITE_FLOAT or for SQLITE_BLOB of length
3835 static Decimal *decimal_new(
3840 Decimal *p = 0;
3889 ** Make the given Decimal the result.
3891 static void decimal_result(sqlite3_context *pCtx, Decimal *p){
3942 ** Make the given Decimal the result in an format similar to '%+#e'.
3946 static void decimal_result_sci(sqlite3_context *pCtx, Decimal *p){
4003 ** Compare to Decimal objects. Return negative, 0, or positive if the
4013 static int decimal_cmp(const Decimal *pA, const Decimal *pB){
4019 const Decimal *pTemp = pA;
4048 Decimal *pA = 0, *pB = 0;
4066 ** Expand the Decimal so that it has a least nDigit digits and nFrac
4069 static void decimal_expand(Decimal *p, int nDigit, int nFrac){
4098 static void decimal_add(Decimal *pA, Decimal *pB){
4171 static void decimalMul(Decimal *pA, Decimal *pB){
4217 ** Create a new Decimal object that contains an integer power of 2.
4219 static Decimal *decimalPow2(int N){
4220 Decimal *pA = 0; /* The result to be returned */
4221 Decimal *pX = 0; /* Multiplier */
4252 ** Use an IEEE754 binary64 ("double") to generate a new Decimal object.
4254 static Decimal *decimalFromDouble(double r){
4258 Decimal *pA;
4259 Decimal *pX;
4317 Decimal *p = decimal_new(context, argv[0], 0);
4339 Decimal *pA = decimalNewFromText((const char*)zA, nKey1);
4340 Decimal *pB = decimalNewFromText((const char*)zB, nKey2);
4365 Decimal *pA = decimal_new(context, argv[0], 1);
4366 Decimal *pB = decimal_new(context, argv[1], 1);
4378 Decimal *pA = decimal_new(context, argv[0], 1);
4379 Decimal *pB = decimal_new(context, argv[1], 1);
4400 Decimal *p;
4401 Decimal *pArg;
4426 Decimal *p;
4427 Decimal *pArg;
4438 Decimal *p = sqlite3_aggregate_context(context, 0);
4443 Decimal *p = sqlite3_aggregate_context(context, 0);
4459 Decimal *pA = decimal_new(context, argv[0], 1);
4460 Decimal *pB = decimal_new(context, argv[1], 1);
4490 Decimal *pA = decimalPow2(sqlite3_value_int(argv[0]));