ttcalc/help/values_and_std_operators.html

72 lines
1.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>TTCalc - standard operators and built-in variables</title>
<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">
<param name="Keyword" value="pi">
<param name="Keyword" value="%">
<param name="Keyword" value="^">
<param name="Keyword" value="*">
<param name="Keyword" value="/">
<param name="Keyword" value="+">
<param name="Keyword" value="-">
<param name="Keyword" value="#">
<param name="Keyword" value="&amp;">
</object>
</head>
<body>
<h1>Standard operators</h1>
<dl>
<dt>%</dt>
<dd>Percentage from a previous value: 1000-30% = 700</dd>
<dt>^</dt>
<dd>Powering: 2^3 = 8</dd>
<dt>*</dt>
<dd>Multiplication: 2*3 = 6</dd>
<dt>/</dt>
<dd>Division: 2/3 = 0.6666...</dd>
<dt>+</dt>
<dd>Addition: 2+3 = 5<br>
Unary plus: +2</dd>
<dt>-</dt>
<dd>Subtraction: 2-3 = -1<br>
Unary minus: -2</dd>
<dt>#</dt>
<dd>Operator for changing the base (radix) to 16 (hex): #ff = 255</dd>
<dt>&amp;</dt>
<dd>Operator for changing the base (radix) to 2 (bin): -&amp;110 = -6</dd>
</dl>
<p>Of course you can use parentheses ( and ). Look at <a href="operators_priority.html">operators priority</a> as well.</p>
<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>