From kde-core-devel Tue Apr 30 18:42:11 2002 From: Rob Kaper Date: Tue, 30 Apr 2002 18:42:11 +0000 To: kde-core-devel Subject: Re: Looking for (KDE) lib/class to perform calculations X-MARC-Message: https://marc.info/?l=kde-core-devel&m=102019231318450 On Thursday 01 January 1970 01:00, Rob Kaper wrote: > Is there a class/method/lib in KDE/Qt to perform calculations? > > Something like KCalculator::calculate(const QString expression) or > something that let's me do int result =3D calculate( "(3*%1)+40" ).(30) w= hich > will return > 130.. I think I found what I was looking for: cap@kira:~/libmath/examples$ ./f1 25\*2^x 3 =46unction Library example program (l1) u(x)=3D25*2^x u(3)=3D200 Small and elegant, very useful. It's not Qt/KDE, but it's C++ so that's nic= e. Rob =2D-=20 Rob Kaper | Gimme some love, gimme some skin, cap@capsi.com | if we ain't got that then we ain't got much www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A