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

Alex Richardson alex.richardson at gmx.de
Sat Oct 24 17:36:32 BST 2009


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





--- Comment #2 from Alex Richardson <alex richardson gmx de>  2009-10-24 18:36:31 ---
(In reply to comment #1)
> 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.
The problem was I called it with such a high precision by mistake and it hung
the whole program. 
I never wanted to have such an exact representation.
I just thought it might keep other applications from hanging if an upper bound
gets added.

-- 
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