Skip to content
Prev 42041 / 63435 Next

bug in sum() on integer vector

Hi Ted,
On 11-12-13 04:52 PM, (Ted Harding) wrote:
[...]
AFAICT, with bc and other tools doing arithmetic on arbitrary large
integers, operations like +, -, *, ^ etc either give the exact answer
or they fail. That's the beauty of those tools. Otherwise you could
call them "pointless" or "broken".

Arbitrary-precision vs fixed-precision is slightly off topics though.
In particular I didn't suggest that doing sum() on an integer vector
should use arbitrary large integers internally to do the computation.

Cheers,
H.