Javascript DataView getFloat64()

Introduction

The Javascript DataView getFloat64() method gets a signed 64-bit float, double, at the specified byte offset from the DataView.

dataview.getFloat64(byteOffset [, littleEndian])
  • byteOffset - the offset, in byte, from the start of the view.
  • littleEndian - Optional, If false or undefined, a big-endian value is read. Or use little endian.

Using the getFloat64 method

var buffer = new ArrayBuffer(8);
var dataview = new DataView(buffer);
console.log(dataview.getFloat64(0));/*from  w ww. j a  v a  2 s .  c  o  m*/



PreviousNext

Related