| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Float32Array | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..
Float32Array 32- ( float C) - . , [DataView]](/ru/docs/Web/JavaScript/Reference/Global_Objects/DataView) 0. Float32Array, , ( - ).
new Float32Array(); // new in ES2017 new Float32Array(length); new Float32Array(typedArray); new Float32Array(object); new Float32Array(buffer [, byteOffset [, length]]);
Float32Array.BYTES_PER_ELEMENT , . Float32Array 4.
"" 0. ( ) Float32Array.prototype.length.
Float32Array.name . Float32Array "Float32Array".
Float32Array.prototype TypedArray.
Float32Array.from() Float32Array . Array.from().
Float32Array.of() Float32Array . Array.of().
Float32Array prototype`` Float32Array %TypedArray%.prototype.
Float32Array.prototype.constructor , . Float32Array.
Float32Array.prototype.buffer ArrayBuffer, Float32Array. .
Float32Array.prototype.byteLength Float32Array ArrayBuffer. .
Float32Array.prototype.byteOffset ( ) Float32Array ArrayBuffer. .
Float32Array.prototype.length , Float32Array. .
Float32Array.prototype.copyWithin()Float32Array.prototype.entries() Array Iterator, - . Array.prototype.entries().
Float32Array.prototype.every()Float32Array.prototype.fill()Float32Array.prototype.filter()Float32Array.prototype.find() , , undefined. Array.prototype.find().
Float32Array.prototype.findIndex() , , -1. Array.prototype.findIndex().
Float32Array.prototype.forEach()Float32Array.prototype.includes() , true false. Array.prototype.includes().
Float32Array.prototype.indexOf() ( ), -1. Array.prototype.indexOf().
Float32Array.prototype.join()Float32Array.prototype.keys() Array Iterator, . Array.prototype.keys().
Float32Array.prototype.lastIndexOf() , - 1. Array.prototype.lastIndexOf().
Float32Array.prototype.map()Float32Array.prototype.reduce() (-) . Array.prototype.reduce().
Float32Array.prototype.reduceRight()Float32Array.prototype.reverse()Float32Array.prototype.set().
Float32Array.prototype.slice()Float32Array.prototype.some() true . Array.prototype.some().
Float32Array.prototype.sort()Float32Array.prototype.subarray() Float32Array .
Float32Array.prototype.values() Array Iterator . Array.prototype.values().
Float32Array.prototype.toLocaleString()Float32Array.prototype.toString()Float32Array.prototype[@@iterator]() Array Iterator .
Float32Array:
//
var float32 = new Float32Array(2);
float32[0] = 42;
console.log(float32[0]); // 42
console.log(float32.length); // 2
console.log(float32.BYTES_PER_ELEMENT); // 4
//
var arr = new Float32Array([21, 31]);
console.log(arr[1]); // 31
// TypedArray
var x = new Float32Array([21, 31]);
var y = new Float32Array(x);
console.log(y[0]); // 21
// ArrayBuffer
var buffer = new ArrayBuffer(16);
var z = new Float32Array(buffer, 0, 4);
//
var iterable = (function* () {
yield* [1, 2, 3];
})();
var float32 = new Float32Array(iterable);
// Float32Array[1, 2, 3]
| Specification |
|---|
| ECMAScript 2027 LanguageSpecification # sec-typedarray-objects |
ECMAScript 2015 (ES6), Float32Array new. Float32Array TypeError.
var dv = Float32Array([1, 2, 3]);
// TypeError: calling a builtin Float32Array constructor
// without new is forbidden
var dv = new Float32Array([1, 2, 3]);
This page was last modified on 29 . 2026 . by MDN contributors.
Float32ArrayTypedArrayat()copyWithin()entries()every()fill()filter()find()findIndex()findLast()findLastIndex()forEach()includes()indexOf()TypedArray.prototype.join()keys()lastIndexOf()map()reduce()reduceRight()reverse()TypedArray.prototype.set()slice()some()sort()subarray()toLocaleString()toReversed()toSorted()toString()values()with()[Symbol.iterator]()Object/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()BigInt64ArrayBigUint64ArrayFloat16ArrayFloat64ArrayInt8ArrayInt16ArrayInt32ArrayUint8ArrayUint8ClampedArrayUint16ArrayUint32ArrayYour blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |