[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-16 20:13:35
Message-ID: 200407162213.35838.l.lunak () suse ! cz
[Download RAW message or body]

Dne pá 16. července 2004 15:16 Roger Larsson napsal(a):
> On Friday 16 July 2004 14.54, Lubos Lunak wrote:
> > On Thursday 15 of July 2004 14:34, Martin Koller wrote:
> > > On Wednesday 14 July 2004 14:44, Lauri Watts wrote:
> > > > It doesn't seem to want to do anything for me involving decimal
> > > > points though - if anyone can confirm, it's probably worth a bug
> > > > report, because it's a really cute little (hidden) feature.
> > >
> > > it uses the bash built in arithmetic evaluation "echo $((%1))", where
> > > man bash says:
> > > "Evaluation is done in fixed-width integers ..."
> >
> >  I changed the code in CVS HEAD to check if bc(1) is available and use
> > that if yes.
>
> I might have language wrong in shell but bc does not accept , as decimal
> symbol.

 I noticed. GNU bc has it documented in the manpage that it ignores LC*. 
Moreover its handling of decimal numbers is really braindamaged (25.0000000). 
I think I'll revert and minicli will stay at handling only integers :(. 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.

-- 
 Lubos Lunak
 KDE Developer
_______________________________________________
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