1570c89f1bcc66cd1940cd61b7e21dd127022c5e
[clinton/guile-figl.git] / upstream-man-pages / manglsl / round.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id="round">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>2011</year>
9 <holder>Khronos Group</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>round</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>round</refname>
17 <refpurpose>find the nearest integer less than or equal to the parameter</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>Declaration</title>
20 <funcsynopsis>
21 <funcprototype>
22 <funcdef>genType <function>round</function></funcdef>
23 <paramdef>genType <parameter>x</parameter></paramdef>
24 </funcprototype>
25 </funcsynopsis>
26 <funcsynopsis>
27 <funcprototype>
28 <funcdef>genDType <function>round</function></funcdef>
29 <paramdef>genDType <parameter>x</parameter></paramdef>
30 </funcprototype>
31 </funcsynopsis>
32 </refsynopsisdiv>
33 <refsect1 id="parameters"><title>Parameters</title>
34 <variablelist>
35 <varlistentry>
36 <term><parameter>x</parameter></term>
37 <listitem>
38 <para>
39 Specify the value to evaluate.
40 </para>
41 </listitem>
42 </varlistentry>
43 </variablelist>
44 </refsect1>
45 <refsect1 id="description"><title>Description</title>
46 <para>
47 <function>round</function> returns a value equal to the nearest integer to <parameter>x</parameter>.
48 The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is
49 fastest. This includes the possibility that <function>round</function>(<parameter>x</parameter>) returns the
50 same value as <citerefentry><refentrytitle>roundEven</refentrytitle></citerefentry>(<parameter>x</parameter>)
51 for all values of <parameter>x</parameter>.
52 </para>
53 </refsect1>
54 <refsect1 id="versions"><title>Version Support</title>
55 <informaltable frame="topbot">
56 #VARTABLECOLS#
57 <thead>
58 #FUNCTABLEHEADER#
59 <row>
60 <entry>round (genType)</entry>#newin13#
61 </row>
62 <row>
63 <entry>round (genDType)</entry>#newin40#
64 </row>
65 </thead>
66 </tgroup>
67 </informaltable>
68 </refsect1>
69 <refsect1 id="seealso"><title>See Also</title>
70 <para>
71 <citerefentry><refentrytitle>floor</refentrytitle></citerefentry>,
72 <citerefentry><refentrytitle>roundEven</refentrytitle></citerefentry>
73 </para>
74 </refsect1>
75 <refsect1 id="Copyright"><title>Copyright</title>
76 <para>
77 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group.
78 This material may be distributed subject to the terms and conditions set forth in
79 the Open Publication License, v 1.0, 8 June 1999.
80 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.
81 </para>
82 </refsect1>
83 </refentry>