[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: BASH question



On 07Sep2006 00:49, Khoa Ton <khoa 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.
-- 
Cameron Simpson <cs zip com au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Early to rise and early to bed makes a male healthy, wealthy, and dead.
        - James Thurber


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]