mirror of
https://github.com/php/doc-ru.git
synced 2025-08-15 23:42:35 +00:00
94 lines
2.7 KiB
XML
94 lines
2.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 43130349a3f4681a2039e7e27fb56082981cdc13 Maintainer: tmn Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="function.gmp-strval" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>gmp_strval</refname>
|
|
<refpurpose>Преобразовывает числа GMP в строку</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>gmp_strval</methodname>
|
|
<methodparam><type class="union"><type>GMP</type><type>int</type><type>string</type></type><parameter>num</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>base</parameter><initializer>10</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Преобразовывает GMP-число в строку в системе счисления
|
|
параметра <parameter>base</parameter>. По умолчанию числа преобразовываются
|
|
в десятичной системе счисления.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>num</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
GMP число для конвертации.
|
|
</para>
|
|
&gmp.parameter;
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>base</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Система счисления возвращаемого числа. По умолчанию - 10.
|
|
Возможные значения: от 2 до 62 и от -2 до -36.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Число в виде строки (<type>string</type>).
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Преобразование GMP-числа в строку</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$a = gmp_init("0x41682179fbf5");
|
|
printf("Десятичное: %s, 36-ричное: %s", gmp_strval($a), gmp_strval($a,36));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</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
|
|
-->
|