Quantcast
Viewing all articles
Browse latest Browse all 4439

Can someone confirm this observed bug for `bc`? `scale=0` has no effect!

When I run:

fval=1.40 ; echo "scale=0 ; 1000 * ${fval}" | bc

I get the result:

1400.00

With my specified value for scale, I expect no decimal digits.

Does anyone else have this issue?

Version: bc 1.07.1

Ubuntu 22.04.4 LTS

(Upgrade of Ubuntu MATE from 20.04 LTS to 22.04.04 LTS, not a fresh install)


Viewing all articles
Browse latest Browse all 4439

Trending Articles