Hello Tobias and Maintainer,

Am 2006-09-20 19:22:54, schrieb Tobias Richter:
> Package: bc
> Version: 1.06-19
> Severity: normal
> 
> 
> scale is not always evaluated it seems:
> 
> $ echo "scale=0; 10 * 2.1" | bc
> 21.0
> $ echo "scale=0; ( 10 * 2.1 ) / 1" | bc
> 21
> 
> Shouldn't that yield '21' twice?

Yes

> I don't quite see a reason for the current behaviour, nor
> could a quick look into the docs reveal anything related.

I have tried it under Woody and it works, since Sarge it is
not more correctly evaluated and I hat to do some workarounds
in my Bash scripts.

I need "scale=2" but it outputs up to 7 chifres after the dot.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to