From owner-freebsd-questions@FreeBSD.ORG Fri Jun 25 15:49:54 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1750016A4CE for ; Fri, 25 Jun 2004 15:49:54 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.249]) by mx1.FreeBSD.org (Postfix) with SMTP id EE7E943D31 for ; Fri, 25 Jun 2004 15:49:53 +0000 (GMT) (envelope-from paul.bissex@gmail.com) Received: by mproxy.gmail.com with SMTP id w29so5999053cwb for ; Fri, 25 Jun 2004 08:49:49 -0700 (PDT) Received: by 10.11.118.71 with SMTP id q71mr1132643cwc; Fri, 25 Jun 2004 08:49:49 -0700 (PDT) Message-ID: <1001523104062508497a2a101a@mail.gmail.com> Date: Fri, 25 Jun 2004 11:49:49 -0400 From: Paul Bissex To: freebsd-questions@freebsd.org In-Reply-To: <36fb6de804062508417917d0b8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <36fb6de804062508417917d0b8@mail.gmail.com> Subject: Re: command-line calculator? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 15:49:54 -0000 On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby wrote: >=20 > What simple built-in command-line tools are available if I want to > just do some simple math on the command line? Here are two possibilities: :~> man -k calculator bc(1) - An arbitrary precision calculator language dc(1) - an arbitrary precision calculator =20 =20 =20 =20 ~> 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'.=20 17 * 36 612 =20 =20 =20 =20 ~> dc 17 36 * p 612 --=20 paul bissex, e-scribe.com -- database-driven web development 413.585.8095 69.55.225.29 01061-0847 72=B039'71"W 42=B019'42"N