[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: patch to fix bug #18083
From:       Norbert Andres <nandres () web ! de>
Date:       2002-08-19 20:11:44
[Download RAW message or body]

Works for me.

On Monday 19 August 2002 18:31, Ariya Hidayat wrote:
> The following patch fix bug #18083 (kspread rounding error).
>
> Problem: in most system (including mine), printf("%.2f",x) results in
> "63.15" if x is 63.145 but "64.14" if x is 64.145. For the latter, it
> should be "64.15" (I checked with MS Excel). So it's not KLocale's or
> QString's fault. I don't know exactly what might cause this (broken libc?)
>
> Solution: round the number before passing it to KLocale::formatNumber().
> Hopefully it doesn't introduce noticable penalty.
>
> OK to commit ?
>
> (John: sorry if this duplicates your work/investigation).

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic