php-doc-en/reference/math/functions/ceil.xml
Sander Roobol 0982f71af9 Various small changes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@84417 c90b9560-bf6c-de11-be94-00142212c4b1
2002-06-02 11:56:51 +00:00

57 lines
1.6 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.ceil">
<refnamediv>
<refname>ceil</refname>
<refpurpose>Round fractions up</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>float</type><methodname>ceil</methodname>
<methodparam><type>float</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<simpara>
Returns the next highest integer value by rounding up
<parameter>value</parameter> if necessary.
The return value of <function>ceil</function> is still of type
<type>float</type> as the value range of <type>float</type> is
usually bigger than that of <type>integer</type>.
</simpara>
<example>
<title><function>ceil</function> example</title>
<programlisting role="php">
<![CDATA[
echo ceil(4.3); // 5
echo ceil(9.999); // 10
]]>
</programlisting>
</example>
<simpara>
See also <function>floor</function> and
<function>round</function>.
</simpara>
</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:"../../../../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
-->