GNU bug report logs -
#30453
Bug in BC calculator version 1.07.1
Previous Next
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 #8 received at 30453 <at> debbugs.gnu.org (full text, mbox):
This is not a bug.
From the man-page:
$ man bc | fgrep -A5 "expr * expr"
expr * expr
The result of the expression is the product of the two
expressions.
expr / expr
The result of the expression is the quotient of
the two expressions. The scale of the result is the value of the
variable
scale.
So expr * expr is not scaled but expr / expr is scaled.
Regards
Martin
On 14 February 2018 at 07:52, Thomas Bracken <t.bracken <at> shaw.ca> wrote:
> 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.
>
This is not a bug.
From the man-page:
$ man bc | fgrep -A5 "expr * expr"
expr * expr
The result of the expression is the product of the two
expressions.
expr / expr
The result of the expression is the quotient of
the two expressions. The scale of the result is the value of the
variable
scale.
Regards
Martin
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.