The Float64Array typed array represents an array of 64-bit floating point numbers (corresponding to the C double data type) in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).

Syntax

new Float64Array(); // new in ES2017
new Float64Array(length);
new Float64Array(typedArray);
new Float64Array(object);
new Float64Array(buffer [, byteOffset [, length]]);

For more information about the constructor syntax and the parameters, see TypedArray.

Legend

Full support

Full support

No support

No support

Compatibility unknown

Compatibility unknown

Compatibility notes

Starting with ECMAScript 2015, Float64Array constructors require to be constructed with a new operator. Calling a Float64Array constructor as a function without new, will throw a TypeError from now on.