[Discuss] bash math beyond 3 digits of precision

pw p.willis at telus.net
Wed Jun 4 10:46:32 PDT 2008


Steven Kurylo wrote:
>> Is there a standard package that will allow
>> calculation of floating point numbers on the command line
>> (bash) providing numeric precision beyond 3 (10 would be nice)
>> without having to script in perl or python or some such?
> 
> bc?


Thanks.

bc is what I was looking for.

'bc' isnt a very intuitive name for a calculator....
Then again 'dd' isnt a very intuitive name for a file copy....
Then again no command name in Unix is very intuitive....

<sigh!> never mind.

Maybe I should have:

apropos calc

before I asked.

Thanks again,

Peter


More information about the Discuss mailing list