<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.is-nan.php',
    1 => 'is_nan',
    2 => 'Checks whether a float is NAN',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Math İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.is-infinite.php',
    1 => 'is_infinite',
  ),
  'next' => 
  array (
    0 => 'function.log.php',
    1 => 'log',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/math/functions/is-nan.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.is-nan" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">is_nan</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">is_nan</span> &mdash; <span class="dc-title">Checks whether a float is NAN</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.is-nan-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>is_nan</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">
   Returns whether the given <code class="parameter">num</code> is <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> (<q class="quote">Not A Number</q>).
  </p>
  <p class="para">
   <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> is returned from mathematical operations that are undefined,
   for example when passing parameters outside of function’s input domain. The square root
   (<span class="function"><a href="function.sqrt.php" class="function">sqrt()</a></span>) is only defined for positive numbers, passing a negative number
   will result in <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>. Other examples of operations returning <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>
   are dividing <strong><code><a href="math.constants.php#constant.inf">INF</a></code></strong> by <strong><code><a href="math.constants.php#constant.inf">INF</a></code></strong> and any operation involving an
   existing <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> value.
  </p>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <p class="para">
    Despite its name of <q class="quote">Not A Number</q>, <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> is a valid value of type <span class="type"><a href="language.types.float.php" class="type float">float</a></span>.
   </p>
  </p></blockquote>
  <div class="caution"><strong class="caution">Dikkat</strong>
   <p class="para">
    <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong> does not compare equal to <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>. To check whether
    a float is <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>, <span class="function"><strong>is_nan()</strong></span> must be used. Checking
    <code class="code">$float === NAN</code> will not work.
   </p>
  </div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.is-nan-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">num</code></dt>
     <dd>
      <p class="para">
       The <span class="type"><a href="language.types.float.php" class="type float">float</a></span> to check
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.is-nan-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if <code class="parameter">num</code> is <strong><code><a href="math.constants.php#constant.nan">NAN</a></code></strong>, else <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.is-nan-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 <span class="function"><strong>is_nan()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$nan </span><span style="color: #007700">= </span><span style="color: #0000BB">sqrt</span><span style="color: #007700">(-</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$nan</span><span style="color: #007700">, </span><span style="color: #0000BB">is_nan</span><span style="color: #007700">(</span><span style="color: #0000BB">$nan</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">float(NAN)
bool(true)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.is-nan-seealso">
  <h3 class="title">Ayrıca Bakınız</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> - Checks whether a float is finite</span></li>
    <li><span class="function"><a href="function.is-infinite.php" class="function" rel="rdfs-seeAlso">is_infinite()</a> - Checks whether a float is infinite</span></li>
   </ul>
  </p>
 </div>


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