Re: BASH question

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

 



Aaron Konstam kirjoitti viestissään (lähetysaika sunnuntai, 10. 
syyskuuta 2006 02:20):
> But if you know that bc and dc actually implement fixed point
> arithmetic routines ans can testify to that fact I will be
> interested to hear about it.

According to the POSIX definition of bc 
(http://www.opengroup.org/onlinepubs/009695399/utilities/bc.html), 
it should behave as if it uses fixed-point decimal arithmetic, 
no matter what the actual implementation: "Internal computations 
shall be conducted as if in decimal, regardless of the input and 
output bases, to the specified number of decimal digits."

The documentation for GNU bc 
(http://www.gnu.org/software/bc/manual/html_mono/bc.html#SEC5) 
states:
"Numbers are arbitrary precision numbers. This precision is both 
in the integer part and the fractional part. All numbers are 
represented internally in decimal and all computation is done in 
decimal." ... "There are two attributes of numbers, the length 
and the scale."
In other words, it uses fixed-point decimal arithmetic.

-- 
 Markku Kolkka
 markku.kolkka@xxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux