<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
  <refentry id="function.max">
   <refnamediv>
    <refname>max</refname>
    <refpurpose>Find highest value</refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
    <methodsynopsis>
     <type>number</type><methodname>max</methodname>
     <methodparam><type>number</type><parameter>arg1</parameter></methodparam>
     <methodparam><type>number</type><parameter>arg2</parameter></methodparam>
     <methodparam><type>number</type><parameter>argn</parameter></methodparam>
    </methodsynopsis>
    <para>
     <function>max</function> returns the numerically highest of the
     parameter values.
    </para>
    <para>
     If the first parameter is an array, <function>max</function>
     returns the highest value in that array.  If the first parameter
     is an integer, string or float, you need at least two parameters
     and <function>max</function> returns the biggest of these values.
     You can compare an unlimited number of values.
    </para>
    <para>
     If one or more of the values is a float, all the values will be
     treated as floats, and a float is returned.  If none of the
     values is a float, all of them will be treated as integers, and
     an integer is returned.
    </para>
    <para>
     See also <function>max</function>.
    </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:"../../../../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
-->