1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-23 23:32:16 +01:00
Files
archived-doc-ru/reference/bc/functions/bcfloor.xml
Mikhail Alferov f78c6b2db2 Update bc functions to En (#1036)
* Update bcadd.xml to en

* Update bcceil.xml to en

* Update bccomp.xml to en

* Update bcdiv.xml to en

* Update bcdivmod.xml to en

* Update bcfloor.xml to en

* Update bcmod.xml to en

* Update bcmul.xml to en

* Update bcpow.xml to en

* Update bcpowmod.xml to en

* Update bcround.xml to En + Infostyle

* Update bcsqrt.xml to en

* Update bcsub.xml to en
2025-01-17 04:21:42 +03:00

91 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c7e83fbbbcde9f54affc09424d032c38492a3ff4 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.bcfloor" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
<refnamediv>
<refname>bcfloor</refname>
<refpurpose>Округляет число произвольной точности в меньшую сторону</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>bcfloor</methodname>
<methodparam><type>string</type><parameter>num</parameter></methodparam>
</methodsynopsis>
<simpara>
Функция возвращает значение в виде целого числа, которое получает
путём округления аргумента <parameter>num</parameter> до ближайшего меньшего целого, когда требуется.
</simpara>
</refsect1>
<refsect1 role="parameters">
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('function.bcceil')/db:refsect1[@role='parameters']/*)" />
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
Функция возвращает числовую строку, которая представляет число <parameter>num</parameter>,
округлённое до ближайшего меньшего целого числа.
</simpara>
</refsect1>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('function.bcceil')/db:refsect1[@role='errors'])" />
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Пример округления числа произвольной точности в меньшую сторону функцией <function>bcfloor</function></title>
<programlisting role="php">
<![CDATA[
<?php
var_dump(bcfloor('4.3'));
var_dump(bcfloor('9.999'));
var_dump(bcfloor('-3.14'));
?>
]]>
</programlisting>
&example.outputs;
<screen role="php">
<![CDATA[
string(1) "4"
string(1) "9"
string(2) "-4"
]]>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><function>bcceil</function></member>
<member><function>bcround</function></member>
<member><methodname>BcMath\Number::floor</methodname></member>
</simplelist>
</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
-->