FOLGMANN
SourceForge Logo

tkalc

nifty pocket calculator for developers and IP network operators

Download

Stable Version

Current
tkalc 1.0.2 (German server)
tkalc 1.0.2 (US server)
Archive
tkalc 1.0.1

Development Version

currently nothing

Runs on

Linux, Windows

Requires

Tcl/Tk

Checked with

TclPro Checker

Distribution

How to unzip the archive

Screenshot

tkalc main window on Linux

tkalc main window

History

tkalc release history

tkalc 1.0.2 2000-01-11

Added ip and binary number input method.
Optimized focus handling of windows.

tkalc 1.0.1 2000-12-18

First public release.

About tkalc

tkalc is a nifty pocket calculator for developers and IP network operators.

Arbitrary arithmetic and logical expressions can be entered very quickly in a
text entry field.  The result is then simultaneously displayed in

o decimal
o hexadecimal
o octal
o binary
o ASCII
o IP-Address
o boolean

The following things can be looked up in the online help:

Valid numbers are:
Description	Example
Decimal		42
Float		34.235
Scientific	45.12e5
Hex		0xdeadbeef
Octal		0774 (leading zero)
Binary		[bin 1000.1111] (place dots at will)
IP address	[ip 192.168.41.1]

Operators from highest to lowest precedence:
* ~ !		Unary minus, bitwise NOT, logical NOT
* / %		Multiply, divide, remainder
+ -		Add, subtract
<< 		Left shift
>>		Right shift
< > <= >=	Less, greater, less or equal,
		greater or equal
== !=		Equal, not equal
&		Bitwise AND
^		Bitwise XOR
|		Bitwise OR
&&		Logical AND
||		Logical OR
x?y:z		If x then y else z

Available functions are:
acos(x)
asin(x)
atan(x)
atan2(y,x)
ceil(x)
cos(x)
cosh(x)
exp(x)
floor(x)
fmod(x,y)
hypot(x,y)
log(x)
log10(x)
pow(x,y)
sin(x)
sinh(x)
sqrt(x)
tan(x)
tanh(x)
abs(x)
double(x)
int(x)
round(x)
rand()
srand(x)

Installation

Installation on Linux
---------------------

Simply unpack the file and copy it to a directory in your $PATH.
If you wish you can rename tkalc.tcl to tkalc. Make sure that the file is
executable for you, e.g. do:

chmod u+x ~/bin/tkalc

You can simply add a starter icon to your Gnome or KDE panel.


Installation on Windows
-----------------------

Get Tcl/Tk from http://www.scriptics.com/software/tcltk/downloadnow83.html
and install it on your system.

Simply unpack the tkalc file and copy it to a directory of your choice,
e.g. "C:\Program files" or "C:\Programme" on german installations.

A simple doubleclick on the program will start it. For your convenience make
yourself a link to the Start menu or your desktop.









Last modified: 2010-10-14 17:13:56
© 2000-2009 by Folgmann IT Consulting
Created by XEmacs