[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Open Bugs in 3.2
From: Waldo Bastian <bastian () kde ! org>
Date: 2004-01-12 14:51:38
Message-ID: 200401121551.40846.bastian () kde ! org
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon January 12 2004 00:32, Joachim Eibl wrote:
> This little program contains a little surprise because you assign a double
> constant to a long double variable.
>
> Check this on your machine.
> long double a=49.84; // double constant
> printf("%2.30llf\n",a); // 49.840000000000003410605131648481
> long double a1=49.84L; // long double constant
> printf("%2.30llf\n",a1); // 49.840000000000000000138777878078
>
> This just illustrates how tricky it can be.
This was indeed the problem.
"'49.48" got converted using QString::toDouble() which has double precision
and not long double.
Fixed now.
Cheers,
Waldo
- --
bastian@kde.org -=|[ KDE: K Desktop for the Enterprise ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQFAArR6N4pvrENfboIRAmIBAKCK4PWAuWoccZrQh+WfZyIjiZNDkQCcD6C3
M3YweDGieudZTez/eEwFBf0=
=0piR
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic