mirror of
https://github.com/macintoshplus/doc-en.git
synced 2026-03-24 00:42:18 +01:00
Neither PHP 5.6, nor Visual C 9 are relevant for the manual. And the fact that GMP is available on Windows (as of PHP 5.1.0) is also irrelevant.
75 lines
2.2 KiB
XML
75 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<book xml:id="book.gmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<?phpdoc extension-membership="bundledexternal" ?>
|
|
<title>GNU Multiple Precision</title>
|
|
<titleabbrev>GMP</titleabbrev>
|
|
|
|
<!-- {{{ preface -->
|
|
<preface xml:id="intro.gmp">
|
|
&reftitle.intro;
|
|
<simpara>
|
|
These functions allow for arbitrary-length integers to be worked with using
|
|
the GNU <acronym>MP</acronym> library.
|
|
</simpara>
|
|
<note>
|
|
<para>
|
|
Most GMP functions accept GMP number arguments. These are shown in this
|
|
documentation as <classname>GMP</classname> objects. Most
|
|
of these functions will also accept numeric and string arguments, so long
|
|
as it is possible to convert the latter to a number. Also, if there is a
|
|
more performant function that can operate on the arguments (integers only),
|
|
then it will be used instead (this is done transparently). See also the
|
|
<function>gmp_init</function> function.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
The
|
|
<link linkend="language.operators.arithmetic">arithmetic</link>,
|
|
<link linkend="language.operators.bitwise">bitwise</link>, and
|
|
<link linkend="language.operators.comparison">comparison</link> operators
|
|
may be used with the <classname>GMP</classname> objects returned from
|
|
<function>gmp_init</function> and other GMP functions.
|
|
</para>
|
|
</note>
|
|
<warning>
|
|
<simpara>
|
|
Large integers must be specified as strings - otherwise, PHP will coerce
|
|
them to floats, resulting in a loss of precision.
|
|
</simpara>
|
|
</warning>
|
|
</preface>
|
|
<!-- }}} -->
|
|
|
|
&reference.gmp.setup;
|
|
&reference.gmp.constants;
|
|
&reference.gmp.examples;
|
|
&reference.gmp.reference;
|
|
&reference.gmp.gmp;
|
|
|
|
</book>
|
|
|
|
<!-- 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
|
|
-->
|
|
|