[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: You ruled me out as a potential customer (was: Re: 4 sale...)
On Thu, Aug 10, 2000, Ira Abramov wrote about "Re: You ruled me out as a potential customer (was: Re: 4 sale...)":
> On Thu, 10 Aug 2000, Udi Finkelstein wrote:
>
> > >> Ram - 294Mb 133 Mhz
> > c'mon - 294MB?? It's not even a 32MB multiple.
>
> [ira@ax ira]$ echo "294/32"|bc
> 9
>
> I would guess 2 128M DIMMS and a spare 32 from somewhere, but a valid
> point on the Athlon with Intel chipset :-)
>
> and Tal: if it's not pre-installed with Linux it's off topic :-))
We're getting more and more off-topic by the moment, but I just had to say
something about bc (a Linux issue, isn't it?) - Ira, bc's default is to print
0 (yes, that's right, zero) digits after the decimal point....
runing
echo "scale=6; 294/32"|bc
will get you the correct answer, 9.187500
Because of bc's annoying limitations and syntax, I usually use my own version
of Brian Kernighan's HOC:
/home/nyh$ hoc
Welcome to the NYH HOC interpreter.
Release 9.1.1 (revision 119), Fri Apr 4 16:48:41 IDT 1997.
hoc> 294/32
9.1875
Someday I'll talk with Kernighan about making my version of HOC free
software... Till then, remember bc's 'scale' variable, or use xcalc :)
--
Nadav Har'El | Thursday, Aug 10 2000, 9 Av 5760
nyh@math.technion.ac.il |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |A smart man always covers his ass. A
http://nadav.harel.org.il |wise man just keeps his pants on.
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il