Reliability of `bc' (or: is `bc' buggy?)
Ronald Pikkert
ronald at atcmp.nl
Mon Mar 4 21:58:59 AEST 1991
>From article <1991Mar1.093606.3280 at glance.ch>, by david at glance.ch (David Mosberger):
] What may cause these strange results with control characters in the output?
I tried this input:
a=119615636279504466
b=196129796
a
b
a/b
scale=15
a/b
and it gave this ouput:
119615636279504466
196129796
609880-2208
609879981.109573305220793
I found that any scale >= 1 solves the problem. I'm not sure
about the exact cause.
-
Ronald Pikkert E-mail: ronald at atcmp.nl
@ AT Computing b.v. Tel: 080 - 566880
Toernooiveld
6525 ED Nijmegen
More information about the Comp.unix.wizards
mailing list