Debian Codegraph @

docs/manual/_round_.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>round</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b>
12 round
13 </b></font></table></table>
14 <p>A function that can be used in <a href="Formulas.html">Formulas</a>.</p>
15 <h2>Syntax and semantics</h2>
16 <dl>
17 <dt><b><code><font size=+1>round</font></code></b> (<i><code><font size=+1>x</font></code></i>)
18 <dd>round <i><code><font size=+1>x</font></code></i> to the nearest integer number.</dd>
19 </dl>
20 <code> assert round (1.3) = 1<br></code>
21 <code> assert round (1.7) = 2<br></code>
22 <code> assert round (-1.3) = -1<br></code>
23 <code> assert round (-1.7) = -2<br></code>
24 <p>Halves are rounded up:</p>
25 <code> assert round (-2.5) = -2<br></code>
26 <code> assert round (-1.5) = -1<br></code>
27 <code> assert round (-0.5) = 0<br></code>
28 <code> assert round (0.5) = 1<br></code>
29 <code> assert round (1.5) = 2<br></code>
30 <code> assert round (2.5) = 3<br></code>
31 <h3>Links to this page</h3>
32 <ul>
33 <li><a href="_round-H-H_.html"><code><font size=+1>round##</font></code></a>
34 <li><a href="_round-H_.html"><code><font size=+1>round#</font></code></a>
35 <li><a href="Functions.html">Functions</a>
36 </ul>
37 <hr>
38 <address>
39 <p>© Paul Boersma 2023-06-30</p>
40 </address>
41 </body>
42 </html>