<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.com.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.variant-fix.php',
    1 => 'variant_fix',
    2 => 'Returns the integer portion of a variant',
  ),
  'up' => 
  array (
    0 => 'ref.com.php',
    1 => 'COM Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.variant-eqv.php',
    1 => 'variant_eqv',
  ),
  'next' => 
  array (
    0 => 'function.variant-get-type.php',
    1 => 'variant_get_type',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/com/functions/variant-fix.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.variant-fix" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_fix</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">variant_fix</span> &mdash; <span class="dc-title">Returns the integer portion of a variant</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.variant-fix-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>variant_fix</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.variant.php" class="type variant">variant</a></span></div>

  <p class="para rdfs-comment">
   Gets the integer portion of a variant.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-fix-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">value</code></dt>
     <dd>
      <p class="para">
       The variant.
      </p>
     </dd>
    
   </dl>
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
<p class="para">
 Come con tutte le funzioni aritmetiche variant, i parametri per questa funzione
 possono essere sia tipi nativi di PHP (integer, string, floating point, boolean o
 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>), oppure una istanza di una classe COM, VARIANT o DOTNET.  I tipi nativi PHP
 saranno convertiti in variant usando le stesse regole trovate nel costruttore
 per la classe <a href="class.variant.php" class="xref">variant</a>.  Degli oggetti COM e DOTNET
 verrà preso il valore della loro proprietà di default ed utilizzato come il valore del variant.
</p>
<p class="para">
 Le funzioni aritmetiche variant sono dei wrapper attorno alle funzioni col nome simile
 nella libreria COM; per ulteriori informazioni su queste funzioni, consultare
 la libreria MSDN.  Le funzioni PHP hanno nome leggermente differente: per esempio
 variant_add() in PHP corrisponde a  VarAdd() nella documentazione MSDN.
</p>
</p></blockquote>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-fix-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   If <code class="parameter">value</code> is negative, then the first negative
   integer greater than or equal to the variant is returned, otherwise
   returns the integer portion of the value of
   <code class="parameter">value</code>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.variant-fix-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="para">
   Throws a <span class="classname"><a href="class.com-exception.php" class="classname">com_exception</a></span> on failure.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.variant-fix-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.variant-int.php" class="function" rel="rdfs-seeAlso">variant_int()</a> - Returns the integer portion of a variant</span></li>
    <li><span class="function"><a href="function.variant-round.php" class="function" rel="rdfs-seeAlso">variant_round()</a> - Rounds a variant to the specified number of decimal places</span></li>
    <li><span class="function"><a href="function.floor.php" class="function" rel="rdfs-seeAlso">floor()</a> - Arrotonda le frazioni all'intero inferiore</span></li>
    <li><span class="function"><a href="function.ceil.php" class="function" rel="rdfs-seeAlso">ceil()</a> - arrotonda le frazioni all'intero superiore</span></li>
    <li><span class="function"><a href="function.round.php" class="function" rel="rdfs-seeAlso">round()</a> - Arrotonda un float</span></li>
   </ul>
  </p>
 </div>

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