BASH question

Khoa Ton khoa at puresynergy.com
Fri Sep 8 02:17:10 UTC 2006


Cameron Simpson wrote:
> On 07Sep2006 00:49, Khoa Ton <khoa at puresynergy.com> wrote:
> | This should work for you:
> | 
> | PERMINUTE=$(echo "5 k 28.95 432000 / p" | dc)
> | 
> | I find dc (man dc) very useful for floating point arithmetic.
> 
> I hate to tell you this, but dc does fixed point arithmetic, not
> floating point.

Thank you for the correction, Cameron.  I will use bc instead
of dc for floating point calculations from now on!

Best Regards,
Khoa




More information about the fedora-list mailing list