diff options
Diffstat (limited to 'files/ca/web/javascript/reference/global_objects/dataview/getfloat32')
| -rw-r--r-- | files/ca/web/javascript/reference/global_objects/dataview/getfloat32/index.html | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/files/ca/web/javascript/reference/global_objects/dataview/getfloat32/index.html b/files/ca/web/javascript/reference/global_objects/dataview/getfloat32/index.html deleted file mode 100644 index 83de1562e4..0000000000 --- a/files/ca/web/javascript/reference/global_objects/dataview/getfloat32/index.html +++ /dev/null @@ -1,122 +0,0 @@ ---- -title: DataView.prototype.getFloat32() -slug: Web/JavaScript/Reference/Global_Objects/DataView/getFloat32 -translation_of: Web/JavaScript/Reference/Global_Objects/DataView/getFloat32 ---- -<div>{{JSRef}}</div> - -<p>El mètode <code>getFloat32()</code> obtè un nombre decimal en coma flotant amb signe de 32 bits (float) a la posició en bytes especificada, content des del començament de {{jsxref("DataView")}}.</p> - -<h2 id="Sintaxi">Sintaxi</h2> - -<pre class="syntaxbox"><var>dataview</var>.getFloat32(byteOffset [, littleEndian])</pre> - -<h2 id="Paràmetres">Paràmetres</h2> - -<dl> - <dt>byteOffset</dt> - <dd>La posició, en bytes, des de l'inici de la vista a la que es llegiran les dades.</dd> - <dt>littleEndian</dt> - <dd>{{optional_inline}} Indica si el nombre decimal en coma flotant de 32 bits es troba emmagatzemat en format {{Glossary("Endianness", "little- o big-endian")}}. De ésser false o undefined, s'interpreta el valor com a big-endian.</dd> -</dl> - -<h3 id="Errors_llençats">Errors llençats</h3> - -<dl> - <dt>{{jsxref("RangeError")}}</dt> - <dd>Es llença si <code>byteOffset</code> té un valor que representa una posició més enllà del final de la vista.</dd> -</dl> - -<h2 id="Descripció">Descripció</h2> - -<p>No hi ha cap restricció d'alineament; es poden llegir valors de múltiples bytes des de qualsevol posició.</p> - -<h2 id="Exemples">Exemples</h2> - -<h3 id="Utilitzar_el_mètode_getFloat32">Utilitzar el mètode <code>getFloat32</code></h3> - -<pre class="brush:js">var buffer = new ArrayBuffer(8); -var dataview = new DataView(buffer); -dataview.getFloat32(1); // 0 -</pre> - -<h2 id="Especificacions">Especificacions</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Especificació</th> - <th scope="col">Estat</th> - <th scope="col">Comentaris</th> - </tr> - <tr> - <td>{{SpecName('Typed Array')}}</td> - <td>{{Spec2('Typed Array')}}</td> - <td>Reemplaçada per ECMAScript 6.</td> - </tr> - <tr> - <td>{{SpecName('ES6', '#sec-dataview.prototype.getfloat32', 'DataView.prototype.getFloat32')}}</td> - <td>{{Spec2('ES6')}}</td> - <td>Definició inicial en un estàndard ECMA.</td> - </tr> - </tbody> -</table> - -<h2 id="Compatibilitat_amb_navegadors">Compatibilitat amb navegadors</h2> - -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Suport bàsic</td> - <td>9.0</td> - <td>{{CompatGeckoDesktop("15.0")}}</td> - <td>10</td> - <td>12.1</td> - <td>5.1</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Característica</th> - <th>Android</th> - <th>Chrome per Android</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Suport bàsic</td> - <td>4.0</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatGeckoMobile("15") }}</td> - <td>{{CompatUnknown}}</td> - <td>12.0</td> - <td>4.2</td> - </tr> - </tbody> -</table> -</div> - -<h2 id="Vegeu_també">Vegeu també</h2> - -<ul> - <li>{{jsxref("DataView")}}</li> - <li>{{jsxref("ArrayBuffer")}}</li> -</ul> |
