1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="round" xml:lang="fr">
4
<refname>round</refname>
5
<refpurpose>Arrondi à l'entier le plus proche</refpurpose>
8
<title>Séquence d'appel</title>
9
<synopsis>y=round(x)</synopsis>
12
<title>Paramètres</title>
17
<para>matrice réelle ou complexe</para>
23
<para>matrice entière (ou complexe avec parties réelle et imaginaire entières)</para>
29
<title>Description</title>
31
<literal>round(x)</literal> arrondit les éléments de
32
<literal>x</literal> aux entiers les plus proches.
36
<title>Exemples</title>
37
<programlisting role="example"><![CDATA[
4
<refname>round</refname>
5
<refpurpose>Arrondi à l'entier le plus proche</refpurpose>
8
<title>Séquence d'appel</title>
9
<synopsis>y=round(x)</synopsis>
12
<title>Paramètres</title>
17
<para>matrice réelle ou complexe</para>
23
<para>matrice entière (ou complexe avec parties réelle et imaginaire entières)</para>
29
<title>Description</title>
31
<literal>round(x)</literal> arrondit les éléments de
32
<literal>x</literal> aux entiers les plus proches.
36
<title>Exemples</title>
37
<programlisting role="example"><![CDATA[
38
38
round([1.3 1.5 1.7 2.5 3.7])
39
39
// Remarquez le résultat pour x négatif
40
40
round([-1.3 -1.5 -1.7 -2.5 -3.7])
41
41
round([2.2+%i*23, %pi*%i, -%i ])
42
42
]]></programlisting>
44
<refsection role="see also">
45
<title>Voir aussi</title>
46
<simplelist type="inline">
48
<link linkend="int">int</link>
51
<link linkend="floor">floor</link>
54
<link linkend="ceil">ceil</link>
44
<refsection role="see also">
45
<title>Voir aussi</title>
46
<simplelist type="inline">
48
<link linkend="int">int</link>
51
<link linkend="floor">floor</link>
54
<link linkend="ceil">ceil</link>