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>

index | next in thread | previous in thread | raw e-mail

On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby <cdbaby@gmail.com> wrote:
> 
> 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
                                                                      
                                                                      
                                                                      
                                                                      
                        ~> 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'. 
17 * 36
612
                                                                      
                                                                      
                                                                      
                                                                      
                        ~> dc
17 36 * p
612


-- 
paul bissex, e-scribe.com -- database-driven web development
413.585.8095
69.55.225.29
01061-0847
72°39'71"W 42°19'42"N


help

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