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

Re: BASH question



On 09Sep2006 18:20, Aaron Konstam <akonstam sbcglobal net> wrote:
| Look all this information is interesting. And indeed there have been
| cpu-s that were capable of fixed point arithmetic. Pentiums are not
| among them. I have not seen the source code for either bc or dc but I
| doubt if they implement a form of fixed point arithmetic. It would be
| possible to do this but it is an awful lot of trouble for something that
| can be done in floating point arithmetic and then displayed with the
| appropriate precision.

Dc is for _arbitrary_ precision arithmetic. Floating point doesn't do
that. Neither does the limited size integer registers in the CPU.
_Egro_, it does its own math.
--
Cameron Simpson <cs zip com au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Because of its special customs, crossposting between alt.peeves and normal
newsgroups is discouraged.      - Cameron Spitzer


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