From owner-freebsd-questions@FreeBSD.ORG Tue Jul 12 14:13:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A5C316A41C for ; Tue, 12 Jul 2005 14:13:53 +0000 (GMT) (envelope-from nbco@screaming.net) Received: from heineken.flexi-surf.co.uk (heineken.flexi-surf.co.uk [62.41.128.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id C115243D46 for ; Tue, 12 Jul 2005 14:13:51 +0000 (GMT) (envelope-from nbco@screaming.net) Received: from [10.250.250.5] ([217.51.145.238]) by heineken.flexi-surf.co.uk (8.11.6/8.11.6) with ESMTP id j6CAnOH00407 for ; Tue, 12 Jul 2005 11:49:24 +0100 From: nbco To: freebsd-questions@freebsd.org Date: Tue, 12 Jul 2005 15:13:20 +0100 User-Agent: KMail/1.8.1 References: <42D3B10A.1050804@speechpro.com> <200507120941.12027.ean@hedron.org> In-Reply-To: <200507120941.12027.ean@hedron.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507121513.21094.nbco@screaming.net> Subject: Re: Whats up with KCalc? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nbco@screaming.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 14:13:53 -0000 On Tuesday 12 July 2005 14:41, Ean Kingston wrote: > On July 12, 2005 08:01 am, Igor Robul wrote: > > Parv wrote: > > >in message , > > > > > > > > >Well, did you try any other calculating software? grpn, perl, and > > >dc gave me 46(.00000...) even after asking for a result upto 20 > > >digits. > > > > > >Here is a naive guess: kcalc stores the number in such a way that > > > it causes the abnormality as above(?). > > > > I have checked KCalc on Mandrake Linux 10.1 (different version of > > KDE) and it gives correct result. > > I just checked it on FreeBSD 5.4 and it gives the correct answer. > KCalc 1.8 compiled from port. Hi, My Kcalc gives the also gives the incorrect answer ie . 45 + 1 = 46.00000000000000710542735760100185871124. It will correctly add the first two numbers together but not subsequent sums, exactly as described by the original poster. I also am using 5.4. FreeBSD 5.4-STABLE #11: Tue May 10 18:36:45 BST 2005 .nbco