#30363: utils.numberformat.format renders small decimals in exponential 
notation.
--------------------------------------+------------------------------------
     Reporter:  Sjoerd Job Postmus    |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  closed
    Component:  Utilities             |                  Version:  master
     Severity:  Normal                |               Resolution:  fixed
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Florian Apolloner <apollo13@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"e6d57c4d652f16ac8f8d4600c0b7c30fcfcde6c2" e6d57c4d]:
 {{{
 #!CommitTicketReference repository=""
 revision="e6d57c4d652f16ac8f8d4600c0b7c30fcfcde6c2"
 Fixed #30363 -- Do not use exponential notation for small decimal numbers.

 In 9cc6a60040b0f64f8ea066dd215176d4bd16621d a security patch was
 introduced to prevent allocating large segments of memory when a
 very large or very small decimal number was to be formatted.

 As a side-effect, there was a change in formatting of small decimal
 numbers even when the `decimal_pos` argument was provided, which meant
 that reasonable small decimal numbers (above 1e-199) would be formatted
 as `0.00`, while smaller decimal numbers (under 1e-200) would be
 formatted as `1e-200`.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30363#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.3c5758d0473e62e19c89fc519b20f0e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to