📄 intro.gmp.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Introduction</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.gmp.html">GMP</a></div> <div class="next" style="text-align: right; float: right;"><a href="gmp.setup.html">Installing/Configuring</a></div> <div class="up"><a href="book.gmp.html">GMP</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="intro.gmp" class="preface"> <h1 class="title">Introduction</h1> <p class="simpara"> These functions allow you to work with arbitrary-length integers using the GNU <acronym title="Multiple Precision">MP</acronym> library. </p> <p class="simpara"> These functions have been added in PHP 4.0.4. </p> <blockquote><p><b class="note">Note</b>: Most GMP functions accept GMP number arguments, defined as <i>resource</i> below. However, most of these functions will also accept numeric and string arguments, given that it is possible to convert the latter to a number. Also, if there is a faster function that can operate on integer arguments, it would be used instead of the slower function when the supplied arguments are integers. This is done transparently, so the bottom line is that you can use integers in every function that expects GMP number. See also the <a href="function.gmp-init.html" class="function">gmp_init()</a> function. <br /> </p></blockquote> <div class="warning"><b class="warning">Warning</b> <p class="simpara"> If you want to explicitly specify a large integer, specify it as a string. If you don't do that, PHP will interpret the integer-literal first, possibly resulting in loss of precision, even before <i>GMP</i> comes into play. </p> </div> <blockquote><p><b class="note">Note</b>: <span class="simpara"> This extension is available on Windows platforms since PHP 5.1.0. </span> </p></blockquote> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.gmp.html">GMP</a></div> <div class="next" style="text-align: right; float: right;"><a href="gmp.setup.html">Installing/Configuring</a></div> <div class="up"><a href="book.gmp.html">GMP</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -