Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<title>PostScript Operators</title>
<script type="text/javascript">
function doSearch()
{
window.location.hash = document.getElementById("searchTerm").value;
}
</script>
</head>
<body>
<div>
<p>
<a name="add">add</a>
<br/>
<br/>
Usage: num1 num2 add sum<br/><br/>
returns the sum of num1 and num2. If both operands are integers and the result is
within integer range, the result is an integer; otherwise, the result is a real number.<br/>
Examples<br/>
3 4 add Þ 7<br/>
9.9 1.1 add Þ 11.0<br/><br/>
Errors: stackunderflow, typecheck, undefinedresult<br/>
See Also: div, mul, sub, idiv, mod<br/>
</p>
<hr/>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>
<a name="div">div</a>
<br/>
<br/>
Usage: num1 num2 div quotient<br/><br/>
divides num1 by num2, producing a result that is always a real number even if both
operands are integers. Use idiv instead if the operands are integers and an integer
result is desired.<br/>
Examples<br/>
3 2 div Þ 1.5<br/>
4 2 div Þ 2.0<br/><br/>
Errors: stackunderflow, typecheck, undefinedresult<br/>
See Also: idiv, add, mul, sub, mod<br/>
</p>
<hr/>
</div>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div>
<form>
<label for="searchTerm">Find a term: </label>
<input type="text" id="searchTerm" />
<input type="button" value="Search" onclick="doSearch()" />
</form>
</div>
</body>
</html>