CONCALC(1) | User Commands | CONCALC(1) |
concalc - console calculator
concalc [options] "expression"
concalc -m script "path"
concalc calculates the given input term and returns the result as text. Please use will have problems with the shell interpretor. If you give concalc more than one expression, all expression will be put together.
The script interpreter of calc uses a C-like programming syntax. The following command are supported.
if(condition)
command for condition true;
else command for condition false;
while(condition)
command that is run while condition is true;
for(initialisation; condition; count-command)
command that is run while condition is true;
print( output to print out );
getline; // read a text line from stdin and returns this text
getkey; // return the key pressed by the user
// blocks until the user presses any key
keystate; // returns the key pressed by the user or 0 if no
key was pressed
// nonblocking
sleep( time in microseconds ); //Script is stops for the given time
==, != equal, unequal
>=, <=, >, < greather or equal, less or equal, greather, less
-> calculator set operator
= C-like set operator
(float) floating point value
(int) integer value
(string) text value
(bool) boolean value
No bugs known!
Rainer Strobel <rainer1223@users.sourceforge.net>
http://extcalc-linux.sourceforge.net
APRIL 2007 | Linux |