KCalc's Future

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Dec 8 23:12:16 CET 2007


Albert Astals Cid schrieb:
> A Dissabte 08 Desembre 2007, Christian Ehrlicher va escriure:
>> Albert Astals Cid schrieb:
>>> A Dissabte 08 Desembre 2007, Richard Moore va escriure:
>>>> On 12/8/07, Albert Astals Cid <aacid at kde.org> wrote:
>>>>> So you mean typing 3 + 3 Enter and getting a 0 is the expected
>>>>> behaviour?
>>>> As I said in the previous discussion this works fine here. It only
>>>> seems to be an issue for people on 64 bit machines, and I suspect not
>>>> even all of those. If people would get together info about things like
>>>> which version of gmp they're using, which compiler etc. then maybe we
>>>> could make some progress on this issue.
>>> I know it's weird, actually i'm using exactly the same configuration
>>> (ubuntu version, installed libraries and cpu model) than John Tapsell and
>>> it works for him.
>>>
>>> I've already volunteered givin remove access to my machine to David
>>> Johnson so he can try fixing the bug but he said it was not necessary.
>>>
>>> For the record:
>>> gmp version: 4.2.1+dfsg-5ubuntu4
>>> g++ version: g++-4.1 (GCC) 4.1.3 20070929 (prerelease) (Ubuntu
>>> 4.1.2-16ubuntu2)
>>> machine: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
>> OpenSuSE 10.3 64bit, gcc 4.2.1
>>
>> The attached patch fixes the problem (better: avoids the problem).
>> After this 3+3 is 6 again on my system. It was ever, but displaying did
>> not work correct.
> 
> Works here :-)
> 
fine.
Now we need someone from gmp as the problem lies here:

_knumfloat::_knumfloat(QString const & num)
{
  mpf_init(_mpf);
  mpf_set_str(_mpf, num.toAscii(), 10);
}

I already tried to pass "10,0" without success. Don't know if "nan" and
"inf" is correctly interpreted.


Christian


More information about the release-team mailing list