Hello, The choice of using Decimal was not mine but that of the modules that connect to the backends (postgres in this case), and this is one of the problems I am facing right now. Different backends return the results in different formats (Postgres: Decimal, SQLite: float... etc) I am looking into a way of normalizing the results to the same format. The issue of the datastructure that represents the results is only one part of the problem. Due to the inner representation of numbers and other factors of the different backends, the numeric results might be different, for example, postgres might return 34.7321987 while sqlite returns something like 34.732211 (rounding differentely the results). I believe we should not tamper with the results since we should trust our backend calculations, but then the tests would pass depending on the backend used (And this might even change according to tha backend's versions but I haven't tried that). I will look into this problem in depth and then write back when I come up with some solutions.
On Thu, May 8, 2008 at 10:51 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I haven't had a ton of time to look over everything(just read the > tests so far), but why did you choose to return things as decimals in > place of a float? > > On May 8, 4:38 pm, "Nicolas E. Lara G." <[EMAIL PROTECTED]> wrote: >> For those that are interested the aggregation project is hosted >> inhttp://code.google.com/p/django-aggregation/ >> >> The code is basically an up to date copy of trunk patched with the >> aggregation support and the relevant tests and doc. >> >> Currently there is support for both aggregate and annotate on the >> simplest level. Some tests might be found under tests/modeltests/ >> aggregation/ of the current state of the project. They can probably do >> as documentaion in the early stages of the project (i.e. now :p ) >> >> Any comments or sugestions are more than welcome! :-) >> >> Nicolas > > > -- Nicolas Lara Linux user #380134 Public key id: 0x152e7713 at http://keyserver.noreply.org/ # Anti-Spam e-mail addresses: python -c "print '@'.join(['nicolaslara', '.'.join([x for x in reversed( 'com|gmail'.split('|') )])])" python -c "print '@'.join(['nicolas', '.'.join([x for x in reversed( 've|usb|labf|ac'.split('|') )])])" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---