Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Sep 2002 22:19:18 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Roman Neuhauser <neuhauser@bellavista.cz>
Cc:        Bill Moran <wmoran@potentialtech.com>, questions@FreeBSD.org
Subject:   Re: Is there a decent calculator for x-windows that doesn't have 40G worth of dependencies?
Message-ID:  <20020909191918.GI28799@hades.hell.gr>
In-Reply-To: <20020909062931.GW83171@freepuppy.bellavista.cz>
References:  <3D7B4C3B.8070005@potentialtech.com> <20020909062931.GW83171@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-09-09 08:29, Roman Neuhauser <neuhauser@bellavista.cz> wrote:
>
>     i'm sending this with mixed feelings, because i usually hate it when
>     i ask about a, and get replies with "do / use b", but have you
>     considered using python?

Or bc(1) which is in the base system too?
It can even do fractional numbers in various numerical bases:
The lines marked upwith `->' are my own input:

	charon@hades[22:16]/home/charon$ bc
	bc 1.06
	Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
	This is free software with ABSOLUTELY NO WARRANTY.
	For details type `warranty'.
->	obase=8
->	scale=3
->	2
	2
->	3/2
	1.4000
->	4/3
	1.2523
->	obase=10
->	4/3
	1.333
	charon@hades[22:16]/home/charon$

- Giorgos

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020909191918.GI28799>