★ wanayoo — archive 1999 https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64Nouvelle recherche | Portail wanayoo

Join MDN & developers like you at Mozilla's View Source conference, November 2-4 in Portland, Oregon. Learn more at https://viewsourceconf.org/.

DataView.prototype.getFloat64()

by 1 contributor:

This article is in need of an editorial review.

This translation is incomplete. Please help translate this article from English.

概要

DataViewの開始位置から特定のバイトオフセットで符号付き 64-bit float (double) を取得します。

構文

dataview.getFloat64(byteOffset [, littleEndian])

引数

byteOffset
データを読み込むビューの開始位置からのバイトオフセット
littleEndian
Optional 64-bit float がlittle- or big-endian フォーマットで設定されているかどうかを表します。falseかundefinedの場合、 ビッグエンディアン値が読み込まれます

エラースロー

RangeError
ビューの終わりを越えて読み込まれるようにbyteOffset が設定されている場合、スローされます。

説明

アライメント制約はありません。マルチバイト値はどんなオフセットからでも取得されます。

例

getFloat64 メソッドの使い方

var buffer = new ArrayBuffer(8);
var dataview = new DataView(buffer);
dataview.getFloat64(1); // 0

仕様

仕様 状況 コメント
Typed Array Specification Obsolete Superseded by ECMAScript 6.
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'DataView.prototype.getFloat64' in that specification.
Standard Initial definition in ECMA standard.

ブラウザ実装状況

機能 Chrome Firefox (Gecko) Internet Explorer Opera Safari
基本サポート 9.0 15.0 (15.0) 10 12.1 5.1
機能 Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
基本サポート 4.0 (有) 15.0 (15) ? 12.0 4.2

関連情報

ドキュメントのタグと貢献者

Contributors to this page: shide55
最終更新者: shide55,
サイドバーを隠す