in reply to Re: Re: Simple command line calculator
in thread Simple command line calculator


It doesn't do floating point, though

It does do floating point. Although, by default bc shows the results of calculations as integers. However, that can be changed either by setting scale or by invoking it with the -l option:

$ bc 5/2 2 scale=4 5/2 2.5000 $ bc -l 5/2 2.50000000000000000000

--
John.