<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.is-infinite.php',
    1 => 'is_infinite',
    2 => 'Verifica si un n&uacute;mero de tipo float es infinito',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Funciones Matem&aacute;ticas',
  ),
  'prev' => 
  array (
    0 => 'function.is-finite.php',
    1 => 'is_finite',
  ),
  'next' => 
  array (
    0 => 'function.is-nan.php',
    1 => 'is_nan',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/math/functions/is-infinite.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.is-infinite" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">is_infinite</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">is_infinite</span> &mdash; <span class="dc-title">Verifica si un número de tipo float es infinito</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.is-infinite-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>is_infinite</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.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Indica si el <code class="parameter">num</code> proporcionado es <strong><code><a href="math.constants.php#constant.inf">INF</a></code></strong>
   o -<strong><code><a href="math.constants.php#constant.inf">INF</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.is-infinite-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">num</code></dt>
     <dd>
      <p class="para">
       El <span class="type"><a href="language.types.float.php" class="type float">float</a></span> a verificar
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.is-infinite-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Indica si el <code class="parameter">num</code> proporcionado es <strong><code><a href="math.constants.php#constant.inf">INF</a></code></strong>
   o -<strong><code><a href="math.constants.php#constant.inf">INF</a></code></strong>, en caso contrario, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.is-infinite-examples">
  <h3 class="title">Ejemplos</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Ejemplo #1 Ejemplo de <span class="function"><strong>is_infinite()</strong></span></strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$inf </span><span style="color: #007700">= </span><span style="color: #0000BB">1e308 </span><span style="color: #007700">* </span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$inf</span><span style="color: #007700">, </span><span style="color: #0000BB">is_infinite</span><span style="color: #007700">(</span><span style="color: #0000BB">$inf</span><span style="color: #007700">));<br /><br /></span><span style="color: #0000BB">$negative_inf </span><span style="color: #007700">= -</span><span style="color: #0000BB">$inf</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$negative_inf</span><span style="color: #007700">, </span><span style="color: #0000BB">is_infinite</span><span style="color: #007700">(</span><span style="color: #0000BB">$negative_inf</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>El ejemplo anterior mostrará:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">float(INF)
bool(true)
float(-INF)
bool(true)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.is-infinite-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.is-finite.php" class="function" rel="rdfs-seeAlso">is_finite()</a> - Verifica si un n&uacute;mero flotante es finito</span></li>
    <li><span class="function"><a href="function.is-nan.php" class="function" rel="rdfs-seeAlso">is_nan()</a> - Verifica si un n&uacute;mero flotante es NAN</span></li>
   </ul>
  </p>
 </div>

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