[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kcalc math bug?



On Saturday 30 March 2002 12:05 am, Mike Fedyk wrote:
> On Sat, Mar 30, 2002 at 12:43:52AM +0100, Vincent Lefevre wrote:
> > On Fri, Mar 29, 2002 at 15:33:36 -0800, Mike Fedyk wrote:
> > > Package: kcalc
> > > Priority: optional
> > > Section: utils
> > > Installed-Size: 392
> > > Maintainer: Debian QA Team <packages@qa.debian.org>
> > > Architecture: i386
> > > Source: kdeutils
> > > Version: 4:2.2.2-5
> > >
> > > run these calculations:
> > >
> > > 1x2+5x50 (in this order, not in normal precedence order that
> > > computers and etc use...)
> > >
> > > And it outputs 252 not 350!
> >
> > It should be 252 anyway. Any calculation tool should use the
> > conventional precedence.
>
> NO. Not if I enter it in a specific order.
>
> 1x2 = 2
>
> 2+5 = 7
>
> 7x50 = 350
>
> Not 252!
>
> That is how a calculator should work when you are typing in the
> calculation by *hand*!  I shouldn't have to worry about precedence
> then.
>
> This app is supposed to replace the calculator I can buy for $10.  And
> that is how it should work.

The calculators I've tried, including XCalc, all give 252. In your 
example above you've expanded the calculation to include equal signs. Do 
that on the calculator (press = after every number you enter) and you'll 
get the desired effect. However, I did find one javascript calculator 
that works just as you want -  http://www.x-rates.com/calculator.html and 
click on the link 'popup a simple math <calculator>' below the central 
currency converter. 

Regards, Martin
-- 
martin@dbg400.net  jamaro@firstlinux.net  http://www.dbg400.net        /"\
DBG/400 - DataBase Generation utilities - AS/400 / iSeries Open        \ /
Source free test environment tools and others (file/spool/misc)         X
[this space for hire]  ASCII Ribbon Campaign against HTML mail & news  / \


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: