1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-25 16:22:18 +01:00
Files
archived-doc-ru/reference/math/functions/ceil.xml
Mikhail Alferov aa1fe9455c Обновление перевода (#776)
Co-authored-by: Sergey Panteleev <sergey@php.net>
2024-01-20 13:23:37 +03:00

117 lines
3.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: e2a460ca39fece49eefdd5bd2282e5ba7b488fea Maintainer: aur Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.ceil" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ceil</refname>
<refpurpose>Округляет дробное число в бо́льшую сторону</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>float</type><methodname>ceil</methodname>
<methodparam><type class="union"><type>int</type><type>float</type></type><parameter>num</parameter></methodparam>
</methodsynopsis>
<simpara>
Возвращает следующее по величине целочисленное значение, округляя, если нужно,
значение числа <parameter>num</parameter> в бо́льшую сторону.
</simpara>
</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>,
округлённое до следующего по величине целочисленного значения.
Возвращаемое функцией <function>ceil</function> значение по-прежнему остаётся
числом с плавающей точкой (<type>float</type>), поскольку диапазон значений <type>float</type>
часто больше, чем у <type>int</type>.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
Параметр <parameter>num</parameter> больше не принимает внутренние объекты,
которые поддерживают числовое преобразование.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Пример использования функции <function>ceil</function></title>
<programlisting role="php">
<![CDATA[
<?php
echo ceil(4.3); // 5
echo ceil(9.999); // 10
echo ceil(-3.14); // -3
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>floor</function></member>
<member><function>round</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
-->