On Fri, 26 Mar 2004 01:53 pm, Andrew Wilson wrote:
> Love fun happiness...
>
> I was wondering if anyone knew of a command that would display the sum of
> a mathamatical equation that would be less than 1, eg .6722 etc.
>
> I.e
>
> expr 100 / 123 would return the result of 0 but i need a way to display
> the true value of it.
>
> I could of sworn expr was returning results less than 1 for me before,
> but im sick.. its friday.. and.. well... i have half a cookie to give...
>
> Cheers for all the help..
As always, there other obscure ways too....like awk:
echo "100 123" | awk '{print $1/$2}'
0.813008
Heheh :)
James
--
Fortune cookies says:
Sir, it's very possible this asteroid is not stable.
-- C3P0
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html