2009-03-28 19:26:20 +01:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
2009-11-25 16:10:26 +01:00
|
|
|
<title>TTCalc - standard operators and built-in variables</title>
|
2009-03-28 19:26:20 +01:00
|
|
|
<link rel="stylesheet" href="styles.css" type="text/css">
|
|
|
|
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
|
|
|
|
<param name="Keyword" value="standard operators">
|
|
|
|
<param name="Keyword" value="builtin variables">
|
|
|
|
<param name="Keyword" value="e">
|
2009-04-02 12:26:55 +02:00
|
|
|
<param name="Keyword" value="pi">
|
2009-11-25 16:10:26 +01:00
|
|
|
<param name="Keyword" value="%">
|
2009-03-28 19:26:20 +01:00
|
|
|
<param name="Keyword" value="^">
|
|
|
|
<param name="Keyword" value="*">
|
|
|
|
<param name="Keyword" value="/">
|
|
|
|
<param name="Keyword" value="+">
|
|
|
|
<param name="Keyword" value="-">
|
2009-04-02 12:26:55 +02:00
|
|
|
<param name="Keyword" value="#">
|
|
|
|
<param name="Keyword" value="&">
|
2009-03-28 19:26:20 +01:00
|
|
|
</object>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h1>Standard operators</h1>
|
|
|
|
|
|
|
|
<dl>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dt>%</dt>
|
|
|
|
<dd>Percentage from a previous value: 1000-30% = 700</dd>
|
|
|
|
|
2009-03-28 19:26:20 +01:00
|
|
|
<dt>^</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Powering: 2^3 = 8</dd>
|
2009-03-28 19:26:20 +01:00
|
|
|
|
|
|
|
<dt>*</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Multiplication: 2*3 = 6</dd>
|
2009-03-28 19:26:20 +01:00
|
|
|
|
|
|
|
<dt>/</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Division: 2/3 = 0.6666...</dd>
|
2009-03-28 19:26:20 +01:00
|
|
|
|
|
|
|
<dt>+</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Addition: 2+3 = 5<br>
|
|
|
|
Unary plus: +2</dd>
|
2009-03-28 19:26:20 +01:00
|
|
|
|
|
|
|
<dt>-</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Subtraction: 2-3 = -1<br>
|
|
|
|
Unary minus: -2</dd>
|
2009-04-02 12:26:55 +02:00
|
|
|
|
|
|
|
<dt>#</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Operator for changing the base (radix) to 16 (hex): #ff = 255</dd>
|
2009-04-02 12:26:55 +02:00
|
|
|
|
|
|
|
<dt>&</dt>
|
2009-11-25 16:10:26 +01:00
|
|
|
<dd>Operator for changing the base (radix) to 2 (bin): -&110 = -6</dd>
|
2009-03-28 19:26:20 +01:00
|
|
|
|
|
|
|
</dl>
|
|
|
|
|
2009-05-09 03:13:54 +02:00
|
|
|
<p>Of course you can use parentheses ( and ). Look at <a href="operators_priority.html">operators priority</a> as well.</p>
|
2009-03-28 19:26:20 +01:00
|
|
|
|
|
|
|
<h1>Built-in variables</h1>
|
|
|
|
|
|
|
|
<p>You can use following variables, just type its name into the edit window.</p>
|
|
|
|
<dl>
|
|
|
|
<dt>e</dt>
|
|
|
|
<dd>The base of the natural logarithm.<br>e = 2.718...</dd>
|
|
|
|
|
|
|
|
<dt>pi</dt>
|
|
|
|
<dd>The ratio of a circle's circumference to its diameter.<br>pi=3.141...</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|