-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does anyone know if there is a program for a command line calculator,
and if so what it is called?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
Does anyone know if there is a program for a command line calculator,
and if so what it is called?
If you want to use it in a script, check out expr.
Otherwise, check out bc.
- BS
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam Jimerson wrote:
Does anyone know if there is a program for a command line calculator,
and if so what it is called?
bash :-)
try
echo $((5+2))
echo $((7*6))
at CLI
of course if you want trig and logs you need do a little work...
- --
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* Adam Jimerson [EMAIL PROTECTED] [06-29-07 15:49]:
Does anyone know if there is a program for a command line calculator,
and if so what it is called?
Name: calc Relocations: (not relocatable)
Version :
command line interface for dos or unix/linux???
from Larry
On Friday 29 June 2007 12:58, G T Smith wrote:
Adam Jimerson wrote:
Does anyone know if there is a program for a command
line calculator, and if so what it is called?
bash :-)
try
echo $((5+2))
echo $((7*6))
Bash can't do floating-point calculations.
Python is *the calculator* for the CLI. It has FP, and very hi-precision.
--
-Alexey Eremenko Technologov
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]