JavaScript DataView.getFloat64() method

The JavaScript DataView.getFloat64() inserts a signed 64-bit float number at a specified location.

Range of 64 bit float number:

-1.7+308 to +1.7E+308

Syntax

dataview.getFloat64 (byteOffset)

Parameters:
byteoffset: It represents the offset (in byte) from the start of the data view.

Return:
Signed float number of 64-bit.

Example:

<!DOCTYPE html>
<html>
<body>
<script>
var dv = new ArrayBuffer(25);  
var a = new DataView(dv);  
a.setFloat64(1,2.3);    
document.write(a.getFloat64(1));  
</script>
</body>
</html>

Output:

2.3
Please Share