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.
In reply to Re: Re: Re: Simple command line calculator
by jmcnamara
in thread Simple command line calculator
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |