Re: Bash decimal arithmetic?

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

 



On Wed, 2004-11-10 at 21:22 -0500, Dean Maluski wrote:
> Does bash have an option to do non integer math in scripts?
> I need my exact decimal numbers.
> 

An "exact decimal number" is a contradiction in terms. If you can
specify the precision you wish to retain then use bc to do the
calculations.
-- 
Graham Campbell <gc1111@xxxxxxxxxxxxx>


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

  Powered by Linux