Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since April 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
getFloat16() は DataView インスタンスのメソッドで、この DataView の指定されたバイトオフセットから 2 バイトを読み取り、 16 ビット浮動小数点数として解釈します。アラインメント制約はありません。境界内の任意のオフセットからマルチバイト値を取得できます。
ビューの先頭からのバイト単位のオフセットで、データを読み取る位置です。
littleEndian 省略可データがリトルエンディアンとビッグエンディアンのどちらの形式で格納されているかを示します。false または undefined の場合、ビッグエンディアンの値が読み取られます。
浮動小数点値で、-65504 以上 65504 以下です。
byteOffset がビューの末尾を越えて読み取るように設定されている場合に発生します。
| ECMAScript® 2027 Language Specification # sec-dataview.prototype.getfloat16 |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年3月4日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.