Re: BASH question

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

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux