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

Alex Richardson alex.richardson at gmx.de
Sat Oct 24 15:13:09 BST 2009


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

           Summary: Calling KLocale::formatNumber() with very high
                    precision takes forever
           Product: kde
           Version: unspecified
          Platform: SuSE RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: alex.richardson at gmx.de


Version:            (using KDE 4.3.2)
Compiler:          GCC 4.3 
OS:                Linux
Installed from:    SuSE RPMs

When calling KLocale::number() with a very high precision (I tried 100.000.000)
will max out CPU and take forever.
Same goes for QString::number().

Probably the best solution would a maximum value for precision. For example
something like 200-300 since doubles can't have such a high precision.

Qt version is 4.5.3

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