diff options
| author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
| commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
| tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/it/web/javascript/reference/global_objects/nan | |
| parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
| download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip | |
remove retired locales (#699)
Diffstat (limited to 'files/it/web/javascript/reference/global_objects/nan')
| -rw-r--r-- | files/it/web/javascript/reference/global_objects/nan/index.html | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/files/it/web/javascript/reference/global_objects/nan/index.html b/files/it/web/javascript/reference/global_objects/nan/index.html deleted file mode 100644 index 992f063e9d..0000000000 --- a/files/it/web/javascript/reference/global_objects/nan/index.html +++ /dev/null @@ -1,79 +0,0 @@ ---- -title: NaN -slug: Web/JavaScript/Reference/Global_Objects/NaN -translation_of: Web/JavaScript/Reference/Global_Objects/NaN ---- -<div> -<div> -<div>{{jsSidebar("Objects")}}</div> -</div> -</div> - -<h2 id="Sommario">Sommario</h2> - -<p>La proprietà globale <strong style="font-family: Consolas,Monaco,'Andale Mono',monospace;">NaN </strong>è un valore che rappresenta un non numero (Not-a-Number).</p> - -<p>{{js_property_attributes(0,0,0)}}</p> - -<h2 id="Sintassi">Sintassi</h2> - -<pre class="syntaxbox"><code>NaN</code></pre> - -<h2 id="Description" name="Description">Descrizione</h2> - -<p>Nan è una proprietà del <em>global object </em>e indica il fatto che un certo valore non è un numero legale/valido.</p> - -<p>Il valore iniziale di Nan è Not-A-Number — lo stesso valore che si può riscontrare accedendo a <span style="font-family: Consolas,Monaco,'Andale Mono',monospace;">Number.NaN. </span>Nei browser moderni NaN è una proprietà non configurabile e non scrivibile (read-only).</p> - -<p>NaN è restituito principalmente come valore di fallimento dalle funzioni "matematiche" come <span style="font-family: Consolas,Monaco,'Andale Mono',monospace;">Math.sqrt(-1) </span>oppure quando si prova ad eseguire il parseInt di una stringa che non contiene cifre numeriche come <span style="font-family: Consolas,Monaco,'Andale Mono',monospace;">parseInt("blabla")</span></p> - -<h3 id="Testare_il_valore_NaN">Testare il valore <code>NaN</code></h3> - -<p>Gli operatori di uguaglianza (== o ===) non possono essere usati per verificare il valore di NaN. Deve essere invece utilizzato il metodo IsNaN() presente sia nell'oggetto globale {{jsxref("Global_Objects/isNaN", "isNaN()")}} che nell'oggetto Number {{jsxref("Number.isNaN()")}}. </p> - -<pre class="brush: js">NaN === NaN; // false -Number.NaN === NaN; // false -isNaN(NaN); // true -isNaN(Number.NaN); // true -</pre> - -<h2 id="Specifiche">Specifiche</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - <tr> - <td>ECMAScript 1st Edition.</td> - <td>Standard</td> - <td>Initial definition. Implemented in JavaScript 1.3</td> - </tr> - <tr> - <td>{{SpecName('ES5.1', '#sec-15.1.1.1', 'NaN')}}</td> - <td>{{Spec2('ES5.1')}}</td> - <td> </td> - </tr> - <tr> - <td>{{SpecName('ES6', '#sec-value-properties-of-the-global-object-nan', 'NaN')}}</td> - <td>{{Spec2('ES6')}}</td> - <td> </td> - </tr> - </tbody> -</table> - -<h2 id="Compatibilità">Compatibilità</h2> - - - -<p>{{Compat("javascript.builtins.NaN")}}</p> - -<h2 id="See_also" name="See_also">Vedi anche</h2> - -<ul> - <li>{{jsxref("Number.NaN")}}</li> - <li>{{jsxref("Number.isNaN()")}}</li> - <li>{{jsxref("Global_Objects/isNaN", "isNaN()")}}</li> -</ul> |
