#30290: Documentation should make clear that values on DecimalField is better 
to be
passed as strings
-------------------------------------+-------------------------------------
     Reporter:  Alexandros           |                    Owner:  nobody
  Kanterakis                         |
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  2.1
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson):

 I'm kind of sympathetic to this, because it may well be the first instance
 in which beginners come across this kind of ''computer weirdness''.

 However... I'm not sure the model field reference is the place to teach
 this kind of thing **and** we already like to the ''FloatFields vs
 DecimalFields'' discussion, and from there to the `decimal` docs.

 This discussion is a bit advanced for the situation in mind, so I wonder
 if linking **instead** to the
 [https://docs.python.org/3/tutorial/stdlib2.html#decimal-floating-point-
 arithmetic Decimal Floating Point Arithmetic section of the Python
 Tutorial] (which itself links back to the `decimal` docs) wouldn't be a
 win?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30290#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.078ce19613b941074867000b6c03afd0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to