Menu

[r1]: / docs / decompiled / html / ABSfunction.htm  Maximize  Restore  History

Download this file

48 lines (39 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!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>&nbsp;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">&nbsp;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>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.