mirror of
https://github.com/php/doc-fr.git
synced 2026-03-24 15:12:13 +01:00
Comprehensive review of all doc-fr XML files against doc-en covering: - Translation quality (orthography, gender agreement, conjugation) - TRADUCTIONS.txt compliance (etc., chiffrement, bibliothèque, à partir de) - XML structure sync (tags, sections, constants, examples, changelog) - Missing content (constants, examples, seealso members, sections) Files modified across: security/, faq/, install/, language/, appendices/, and reference/ (intl, funchand, tidy, mhash, mongodb, mysqli, fileinfo, fpm, mail, xlswriter, strings, spl, stream, uodbc, var, openssl, mcrypt, password, pdo_cubrid, phar, session, mbstring, errorfunc, snmp, solr, cubrid, dba, eio, curl, ds, simplexml, sockets, random, info, math, yaf, zip, mysqlnd)
111 lines
3.1 KiB
XML
111 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 2b7eebaaf61adf4b14a18a046f1a6c2b61cc8e72 Maintainer: Fan2Shrek Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
<refentry xml:id="function.fdiv" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>fdiv</refname>
|
|
<refpurpose>Divise deux nombres, selon la norme IEEE 754</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>float</type><methodname>fdiv</methodname>
|
|
<methodparam><type>float</type><parameter>num1</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>num2</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Renvoie le résultat en virgule flottante de la division de
|
|
<parameter>num1</parameter> par <parameter>num2</parameter>.
|
|
Si <parameter>num2</parameter> est zéro, alors l'une des valeurs <constant>INF</constant>,
|
|
-<constant>INF</constant>, ou <constant>NAN</constant> sera renvoyée.
|
|
</para>
|
|
<para>
|
|
Il est à noter que dans les comparaisons, <constant>NAN</constant> ne sera jamais égal (<code>==</code>) ou identique (<code>===</code>) à
|
|
aucune valeur, y compris elle-même.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>num1</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le dividende (numérateur)
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>num2</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le diviseur
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Le résultat en virgule flottante de
|
|
<parameter>num1</parameter>/<parameter>num2</parameter>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Utilisation de <function>fdiv</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
var_dump(fdiv(5.7, 1.3)); // float(4.384615384615385)
|
|
var_dump(fdiv(4, 2)); // float(2)
|
|
var_dump(fdiv(1.0, 0.0)); // float(INF)
|
|
var_dump(fdiv(-1.0, 0.0)); // float(-INF)
|
|
var_dump(fdiv(0.0, 0.0)); // float(NAN)
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member>
|
|
Opérateur de division
|
|
<link linkend="language.operators.arithmetic"><literal>/</literal></link>
|
|
</member>
|
|
<member><function>intdiv</function> - Division entière</member>
|
|
<member><function>fmod</function></member>
|
|
<member><function>fpow</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|