Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for DataView.prototype.setFloat64().
Developer library 3
DataView
setFloat32() - : Takes a number and stores it as a 32-bit float in the 4 bytes starting at the specified byte offset of this `DataView`. - DataView.prototype.setFloat64() - : Takes a number and stores it as a 64-bit float in the 8 bytes starting at the specified byte offset of this `DataView`. - DataView.prototype.setInt16() - : Takes a number and stores it as a 16-bit signed integer in the 2 bytes at the speci
DataView.prototype.setFloat64()
The **`setFloat64()`** method of DataView instances takes a number and stores it as a 64-bit floating point number in the 8 bytes starting at the specified byte offset of this `DataView`. There is no alignment constraint; multi-byte values may be stored at any offset within bounds. JavaScript Demo: DataView.prototype.setFloat64() ```js interactive-example // Create an ArrayBuffer with a size in bytes const buffer =
DataView.prototype.getFloat64()
Float64() ```js interactive-example // Create an ArrayBuffer with a size in bytes const buffer = new ArrayBuffer(16); const view = new DataView(buffer); view.setFloat64(1, Math.PI); console.log(view.getFloat64(1)); // Expected output: 3.141592653589793 ``` ## Syntax ```js-nolint getFloat64(byteOffset) getFloat64(byteOffset, littleEndian) ``` ### Parameters - `byteOffset` - : The offset, in bytes, from the st