command-line calculator?

Paul Bissex paul.bissex at gmail.com
Fri Jun 25 08:49:54 PDT 2004


On Fri, 25 Jun 2004 08:41:02 -0700, CD Baby <cdbaby at 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


More information about the freebsd-questions mailing list