BASH question

Ed Greshko Ed.Greshko at greshko.com
Thu Sep 7 07:33:32 UTC 2006


Andy Green wrote:
> M.Lewis wrote:
>>
>> I thought this was simple, but I've not yet been able to figure out
>> what is wrong.
>>
>> #!/bin/sh
>>
>> PERMINUTE=$((28.95/432000))
> 
> No floating point support :-)  But even then, be liberal with spaces
> 
> PERMINUTE=$(( 29 / 432000 ))

Right...and since bash only works with integers the result of this
calculation is "0".

-- 
 "Who would have though hell would really exist? And that it would be in New
Jersey?" -Leela
"Actually..." - Fry




More information about the fedora-list mailing list