2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-02-08 08:46:23 +00:00
|
|
|
<!-- $Revision: 1.3 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/gmp.xml, last change in rev 1.1 -->
|
|
|
|
<refentry id="function.gmp-div-r">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>gmp_div_r</refname>
|
|
|
|
<refpurpose>Remainder of the division of numbers</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>resource</type><methodname>gmp_div_r</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>n</parameter></methodparam>
|
|
|
|
<methodparam><type>resource</type><parameter>d</parameter></methodparam>
|
|
|
|
<methodparam choice="opt"><type>int</type><parameter>round</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Calculates remainder of the integer division of
|
|
|
|
<parameter>n</parameter> by <parameter>d</parameter>. The
|
|
|
|
remainder has the sign of the <parameter>n</parameter> argument,
|
|
|
|
if not zero.
|
|
|
|
</para>
|
2004-02-08 08:46:23 +00:00
|
|
|
<example>
|
|
|
|
<title><function>gmp_div_r</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$div = gmp_div_r("105", "20");
|
|
|
|
echo gmp_strval($div) . "\n";
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
<para>
|
|
|
|
The printout of the above program will be:
|
|
|
|
</para>
|
|
|
|
<screen>
|
|
|
|
<![CDATA[
|
|
|
|
5
|
|
|
|
]]>
|
|
|
|
</screen>
|
|
|
|
</example>
|
2002-04-15 00:12:54 +00:00
|
|
|
<para>
|
|
|
|
See the <function>gmp_div_q</function> function for description
|
|
|
|
of the <parameter>round</parameter> argument.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
See also <function>gmp_div_q</function>,
|
|
|
|
<function>gmp_div_qr</function>
|
|
|
|
</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:"../../../../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
|
|
|
|
-->
|