[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: OT: EXPR
- From: "Anthony Capone" <capone cap1 net>
- To: <redhat-list redhat com>
- Subject: Re: OT: EXPR
- Date: Mon, 19 Feb 2001 00:36:52 -0500
I need something that I can call in a script...bc would be kind of hard to
do, I think....
Thanks,
Anthony
----- Original Message -----
From: "Johannes Eriksson" <jweeriks infa abo fi>
To: <redhat-list redhat com>
Sent: Sunday, February 18, 2001 11:19 PM
Subject: Re: OT: EXPR
> * Anthony Capone [Sun, Feb 18, 2001 at 09:53:55PM -0500]:
> > How do I get EXPR do display more than one decimal place? So, for
example if
> > I have the expression:
> >
> > expr 33 / 9
> > right now the answer is 3
> > it should be 3.66666667
> > how I tell expr to diplay 3 decimal places??
> >
> > Thanks again,
> >
> > Anthony
> >
>
> Try bc instead. You'll have to set the scale variable to the desired
> number of decimals, though.
>
> Python in interactive mode makes as a great calculcator too (it even
> handles complex numbers).
>
> --
> Johannes Eriksson <jweeriks infa abo fi>
> Computer Science, AA University
>
>
>
> _______________________________________________
> Redhat-list mailing list
> Redhat-list redhat com
> https://listman.redhat.com/mailman/listinfo/redhat-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]