Den 08/01/2014 kl. 17.56 skrev Daniel Roseman <[email protected]>:
> 
> 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.

Greatly embarrassed, and thanks for clarifying. Will be more careful when 
answering next time :-)

Erik

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/1B875D7F-C10E-4BD1-9990-FDED6F8F1A89%40cederstrand.dk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to