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

Re: Simple calculator



On Wed, Aug 05, 1998 at 11:17:39AM -0700, Joey Hess wrote:
> I just use bc:
> 
> joey@kite:~/lab>which calc
> calc () {
> 	echo $* | bc -l
> }
> 
> joey@kite:~/lab>calc 20/13
> 1.53846153846153846153

Hey, that's a nice one:-)

I think that wins the prize... uses existing tools, real simple, and
works without having to remember to set scale, or use lots of (()))((
or whatever..:->

-- 
David Welton                          http://www.efn.org/~davidw 

	Debian GNU/Linux - www.debian.org


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: