On Wed, Jan 8, 2014 at 10:42 PM, Dennis Lee Bieber <wlfr...@ix.netcom.com>wrote:
> If Django's "DecimalField" is NOT use Python's Decimal type, I'd be > concerned... Python's Decimal is NOT a "float". > > However, the conversion of a Decimal to/from PostgreSQL might > result in > a floating point value -- which I'd consider a flaw in the database adapter > as PostgreSQL does have a NUMERIC data type that should map directly to > Python Decimal. > -- > It does use decimal.Decimal and it does map to PostgreSQL numeric. The representation via the ORM though ends up being in scientific number format in the admin interface. This is what caused my concern. I expected a visually decimal number; a 0 or as PostgreSQL/PGAdmin displays it, 0.0000000000. -- MLHIM VIP Signup: http://goo.gl/22B0U ============================================ Timothy Cook, MSc +55 21 94711995 MLHIM http://www.mlhim.org Like Us on FB: https://www.facebook.com/mlhim2 Circle us on G+: http://goo.gl/44EV5 Google Scholar: http://goo.gl/MMZ1o LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3VD8AiEqC76-o3RrUfxf5YLB2w8%2Bb8iAw7Q2UqaqPSH2A%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.