<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.math.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.expm1.php',
    1 => 'expm1',
    2 => 'Returns exp($num) - 1, computed in a way that is accurate even
   when the value of number is close to zero',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Math Functions',
  ),
  'prev' => 
  array (
    0 => 'function.exp.php',
    1 => 'exp',
  ),
  'next' => 
  array (
    0 => 'function.fdiv.php',
    1 => 'fdiv',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/math/functions/expm1.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.expm1" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">expm1</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">expm1</span> &mdash; <span class="dc-title">
   Returns <code class="code">exp($num) - 1</code>, computed in a way that is accurate even
   when the value of number is close to zero
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.expm1-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>expm1</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$num</code></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>expm1()</strong></span> returns the equivalent to
   <code class="code">exp($<code class="parameter">num</code>) - 1</code> computed in a way that is
   accurate even if the value of <code class="parameter">num</code> is near zero,
   a case where <code class="code">exp($<code class="parameter">num</code>) - 1</code> would be
   inaccurate due to subtraction of two numbers that are nearly equal.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.expm1-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">num</code></dt>
     <dd>
      <p class="para">
       The argument to process
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.expm1-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   <code class="literal">e</code> to the power of <code class="parameter">num</code>, minus one.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.expm1-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.log1p.php" class="function" rel="rdfs-seeAlso">log1p()</a> - Returns log(1 + number), computed in a way that is accurate even when
   the value of number is close to zero</span></li>
    <li><span class="function"><a href="function.exp.php" class="function" rel="rdfs-seeAlso">exp()</a> - Calculates the exponent of e</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>