[Bug 211654] Calling KLocale::formatNumber() with very high precision takes forever

Christoph Feck christoph at maxiom.de
Sat Oct 24 17:28:21 BST 2009


https://bugs.kde.org/show_bug.cgi?id=211654


Christoph Feck <christoph at maxiom.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |christoph at maxiom.de
          Component|general                     |kdecore
            Product|kde                         |kdelibs




--- Comment #1 from Christoph Feck <christoph maxiom de>  2009-10-24 18:28:19 ---
I assume you mean KLocale::formatNumber()

200-300 is way too big, too, "double" has a precision of about 16 digits... And
"precision" is the number of fractional decimal digits, so it usually doesn't
make sense to have more than 10 or so.

If you are going to process numbers with higher precision than about 16 digits,
then use libgmp or something similar.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list