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

List:       kde-usability
Subject:    Re: idea calculator - bc and national language?
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2004-07-21 7:42:47
Message-ID: 200407210942.47400.l.lunak () suse ! cz
[Download RAW message or body]

On Tuesday 20 of July 2004 14:11, Sébastien Laoût 2颡stien wrote:
> Le ven 16/07/2004 à 22:13, Lubos Lunak a écrit :
> > I
> > tried also awk and perl, but neither accepts "," as decimal symbol, and
> > moreover they treat it like normal comma operator, causing things like
> > 2,5*2=210. I'm out of ideas.
>
> What about replace all ',' by '.' before passing them to perl ?
> Seem trivial and it would works.

 The code is in kdebase/kdesktop/minicli.cpp near the bottom, feel free to 
play with it. I'm not sure it'd be really that trivial.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/
_______________________________________________
kde-usability mailing list
kde-usability@kde.org
https://mail.kde.org/mailman/listinfo/kde-usability
[prev in list] [next in list] [prev in thread] [next in thread] 

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