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

Re: Simple calculator

On Tue, Aug 04, 1998 at 08:36:18PM +0100, Edward Betts wrote:
> On Tue, 04 Aug, 1998, Dr. Michael Meskes wrote:
> > Is there a simple calculator available? I'd like to have a small binary I
> > can use from the command line. On some archive I found a little program
> > called calc (as expected :-)) that is about 15k and does quite a lot. Do we
> > have something similar, or shall I package it?
> $ echo $((1+1))
> 2

@heorot [~] $ echo $((1.1+1.1))
bash: 1.1+1.1: syntax error in expression (error token is ".1+1.1")

15k is beans if it does what one would expect of a 'real'
calculator:->  That goes for bc as well.. :

20.00 / 13.00

Sure, you can set it to behave 'normally', but just for whipping out a
few numbers... 
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: