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

Re: Like expr, but for floating point numbers?



perl? :)

or maybe bc can be convinced to take stdin/stdout...

On Thursday, 28 September 2000 at 10:28, Krzys Majewski wrote:
> I  would like to  have something  like "expr",  but not  restricted to
> integers. For example, I have a bunch of numbers:
> 99
> 100
> 99
> 98
> 100
> . 
> . 
> . 
> 
> and I take their average with "awk". This gives me some floating point
> number. Now I would like to  compare, in a shell script, this floating
> point number to some  other floating point  number. How do  people do
> this? -chris

Attachment: pgpqpqtdsJykJ.pgp
Description: PGP signature


Reply to: