mirror of
https://github.com/php/doc-ru.git
synced 2026-03-25 16:22:18 +01:00
102 lines
3.1 KiB
XML
102 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: das Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="function.decoct" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>decoct</refname>
|
|
<refpurpose>Переводит число из десятичной системы счисления в восьмеричную</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>decoct</methodname>
|
|
<methodparam><type>int</type><parameter>num</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Возвращает строку, содержащую восьмеричное представление заданного аргумента
|
|
<parameter>num</parameter>. Значение наибольшего числа, которое
|
|
функция преобразует, зависит от платформы. Для 32-битных платформ это обычно
|
|
<literal>4 294 967 295</literal> в десятичном представлении, что даёт <literal>37777777777</literal>
|
|
в восьмеричном. Для 64-битных платформ — это <literal>9 223 372 036 854 775 807</literal>,
|
|
что даёт <literal>777777777777777777777</literal> в восьмеричном.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>num</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Десятичное значение для преобразования.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Возвращает восьмеричное строковое представление числа <parameter>num</parameter>.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Пример использования функции <function>decoct</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
echo decoct(15) . "\n";
|
|
echo decoct(264);
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
17
|
|
410
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>octdec</function></member>
|
|
<member><function>decbin</function></member>
|
|
<member><function>dechex</function></member>
|
|
<member><function>base_convert</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
|
|
-->
|