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