Javatpoint Logo
Javatpoint Logo

JavaScript DataView.getFloat64() method

The JavaScript DataView.getFloat64() is an inbuilt method in dataView. It is used to get a signed 64-bit float(double) number at a specified location.

NOTE: Range of 64-bit floating point number is from -1.7+308 to +1.7E+308.

Syntax

Parameters

byteoffset: The offset, in a byte, from the start of the view where to read the data.

Return value

A signed 64-bit float number.

Browser Support

Chrome 9
Safari 5.1
Firefox 15
Opera 12.1

Example 1

Test it Now

Output:

If we give a Float value then output will be
5.7

Example 2

Test it Now

Output:

if there is no data to be stored, then Output will Be:

NaN

Example 3

Test it Now

Output:

PI value will be
3.141592653589793




Help Others, Please Share

facebook twitter pinterest