setFloat64() method stores a signed 64-bit float
(double) value at the specified byte offset from the start of the
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
dataview.setFloat64(byteOffset, value [, littleEndian])
- The offset, in byte, from the start of the view where to store the data.
- The value to set.
- Optional Indicates whether the 64-bit float is stored in
little- or big-endian format. If
undefined, a big-endian value is written.
- Thrown if the
byteOffsetis set such as it would store beyond the end of the view.
var buffer = new ArrayBuffer(8); var dataview = new DataView(buffer); dataview.setFloat64(0, 3); dataview.getFloat64(0); // 3
The definition of 'DataView.prototype.setFloat64' in that specification.
BCD tables only load in the browser