<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<title>ABS function</title>
<meta name="author" content="Robert Wishlaw" />
<link href="bcx.css" type="text/css" rel="stylesheet" />
</head>
<body>
<a id="top"></a>
<p><b>ABS</b> function</p>
<p><b>Purpose:</b> The ABS function returns the absolute(positive) double precision value of a number.</p>
<table width="100%">
<tr>
<td class="synb"><br />
<span class="p"><b> Syntax:</b></span>
<pre class="cpre">
RetVal# <span class="o">=</span> <span class="p">ABS</span><span class="o">(</span>Number<span class="o">)</span>
</pre>
<p>
<span class="p"> Parameters:</span>
</p>
<ul>
<li><b>RetVal#</b> is the returned absolute(positive) double precision value of Number.</li>
<li><b>Number</b> can be integer, single or double.</li>
</ul>
</td>
</tr>
</table>
<p><b>Example:</b></p>
<pre class="cpre">
RetVal% <span class="o">=</span> <span class="p">ABS</span><span class="o">(</span><span class="o">-</span><span class="n">123.45</span><span class="o">)</span>
</pre>
<p><b>Result:</b></p>
<p>RetVal% will equal 123.45</p>
<p>BCX Console Sample Programs using ABS function.</p>
<p><a href="samples/S125.htm">S125.bas</a></p>
</body>
</html>