Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
Since April 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
DataView 인스턴스의 setFloat16() 메서드는 숫자를 받아 이 DataView의 지정된 바이트 오프셋의 2 바이트의 공간에 16비트 실수로 저장합니다. 정렬 제약 조건은 없으며, 범위 내의 모든 오프셋에서 멀티바이트 값을 저장할 수 있습니다.
데이터를 저장할 데이터 뷰의 시작점으로부터의 바이트 단위의 오프셋.
value저장할 값. 어떻게 값이 바이트로 인코딩되는지는 값 인코딩 및 정규화를 보시기 바랍니다.
littleEndian Optional리틀 엔디언 혹은 빅 엔디언 형식으로 데이터를 저장할지 여부를 나타냅니다. false 혹은 undefined이라면 빅 엔디언 값으로 저장합니다.
byteOffset이 뷰의 끝을 넘어서 저장되어 있는 경우 발생합니다.
| ECMAScript® 2027 Language Specification # sec-dataview.prototype.setfloat16 |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 2월 11일 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.