GNU bug report logs - #30453
Bug in BC calculator version 1.07.1

Previous Next

Package: coreutils;

Reported by: Thomas Bracken <t.bracken <at> shaw.ca>

Date: Wed, 14 Feb 2018 07:27:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Bracken <t.bracken <at> shaw.ca>
To: bug-coreutils <at> gnu.org
Subject: Re: Bug in BC calculator version 1.07.1
Date: Tue, 13 Feb 2018 22:52:22 -0800
[Message part 1 (text/plain, inline)]
Hello,

Your BC calculator does not do any truncation for the scale value

when it does a multiplication.  See example below.

It works fine on division, but not on multiplication.

Cheers!

Tom Bracken

[thomas <at> HP6005computer1 ~]$ bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free 
Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
scale = 5
56.4325435 / 6.3408340583467346436
8.89986
56.4325435 * 6.3408340583467346436
357.82939_38239336408579_
56.4325435 * 6.3408340583467346436 / 1
357.82939
quit
[thomas <at> HP6005computer1 ~]$




-- 
[Message part 2 (text/html, inline)]
[Thomas.jpg (image/jpeg, inline)]

This bug report was last modified 6 years and 264 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.