BASH question

M.Lewis cajun at cajuninc.com
Thu Sep 7 07:36:36 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 ))
> 
> -Andy
> 

Thanks Andy, that resolved the error, but returns $PERMINUTE as 0. It 
should be something like .00067xxxxx. Is there a way to do that?

Thanks,
Mike


-- 

  Every program is either trivial or it contains at least one bug.
   02:35:01 up  3:18,  1 user,  load average: 0.19, 0.37, 0.40

  Linux Registered User #241685  http://counter.li.org




More information about the fedora-list mailing list