On Wed, Jan 8, 2014 at 2:56 PM, Daniel Roseman <dan...@roseman.org.uk>wrote:

>
> No, no, no. None of this is true.
>
> Decimals are not a differently-formatted version of floats. Decimals are
> not a built-in datatype in Python, it's true, but they are provided in the
> standard library in (not surprisingly) the `decimal` module. As the
> documentation for that module explains, decimals do provide precise
> floating-point arithmetic, and are therefore suitable for representing
> things like currencies. Databases usually also provide a similar datatype,
> which Django's DecimalField maps to.
>

Thanks for this post Daniel.  I was just about to bring up the fact ath
Python (since 2.4) has had decimals and does provide a library of
operations for them.  http://docs.python.org/2/library/decimal.html

Hence, my confusion about the DecimalField really using a float.

-- 
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%3DOU3U2DUPsp7dNcUrZ%3DVTrm1k7XW3hZYcjkymUEeaW%2BuvsqA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to