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

Re: BASH question



M.Lewis wrote:

No floating point support :-)  But even then, be liberal with spaces

PERMINUTE=$(( 29 / 432000 ))

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

Farm it out to bc

echo "scale=10 ; 28.95 / 432000" | bc

-Andy

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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