Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 11:49:49 -0400
From:      Paul Bissex <paul.bissex@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: command-line calculator?
Message-ID:  <1001523104062508497a2a101a@mail.gmail.com>
In-Reply-To: <36fb6de804062508417917d0b8@mail.gmail.com>
References:  <36fb6de804062508417917d0b8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby <cdbaby@gmail.com> 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



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