-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into content-sync-ko
- Loading branch information
Showing
255 changed files
with
1,791 additions
and
687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
files/ko/web/javascript/reference/global_objects/dataview/setfloat16/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: DataView.prototype.setFloat16() | ||
slug: Web/JavaScript/Reference/Global_Objects/DataView/setFloat16 | ||
l10n: | ||
sourceCommit: fb442649a7e91a177a582a3e9c6e1a95a9e8dda5 | ||
--- | ||
|
||
{{JSRef}} | ||
|
||
{{jsxref("DataView")}} 인스턴스의 **`setFloat16()`** 메서드는 숫자를 받아 이 `DataView`의 지정된 바이트 오프셋의 2 바이트의 공간에 16비트 실수로 저장합니다. 정렬 제약 조건은 없으며, 범위 내의 모든 오프셋에서 멀티바이트 값을 저장할 수 있습니다. | ||
|
||
{{EmbedInteractiveExample("pages/js/dataview-setfloat16.html")}} | ||
|
||
## 구문 | ||
|
||
```js-nolint | ||
setFloat16(byteOffset, value) | ||
setFloat16(byteOffset, value, littleEndian) | ||
``` | ||
|
||
### 매개변수 | ||
|
||
- `byteOffset` | ||
- : 데이터를 저장할 데이터 뷰의 시작점으로부터의 바이트 단위의 오프셋. | ||
- `value` | ||
- : 저장할 값. 어떻게 값이 바이트로 인코딩되는지는 [값 인코딩 및 정규화](/ko/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#value_encoding_and_normalization)를 보시기 바랍니다. | ||
- `littleEndian` {{optional_inline}} | ||
- : {{Glossary("Endianness", "리틀 엔디언 혹은 빅 엔디언")}} 형식으로 데이터를 저장할지 여부를 나타냅니다. `false` 혹은 `undefined`이라면 빅 엔디언 값으로 저장합니다. | ||
|
||
### 반환 값 | ||
|
||
{{jsxref("undefined")}}. | ||
|
||
### 예외 | ||
|
||
- {{jsxref("RangeError")}} | ||
- : `byteOffset`이 뷰의 끝을 넘어서 저장되어 있는 경우 발생합니다. | ||
|
||
## 예제 | ||
|
||
### setFloat16() 사용하기 | ||
|
||
```js | ||
const buffer = new ArrayBuffer(10); | ||
const dataview = new DataView(buffer); | ||
dataview.setFloat16(0, 3); | ||
dataview.getFloat16(1); // 0 | ||
``` | ||
|
||
## 명세서 | ||
|
||
{{Specifications}} | ||
|
||
## 브라우저 호환성 | ||
|
||
{{Compat}} | ||
|
||
## 같이 보기 | ||
|
||
- [`core-js`에서의 `DataView.prototype.setFloat16` 안내서](https://github.com/zloirock/core-js#float16-methods) | ||
- [JavaScript 형식화 배열](/ko/docs/Web/JavaScript/Guide/Typed_arrays) 안내서 | ||
- {{jsxref("DataView")}} | ||
- {{jsxref("ArrayBuffer")}} | ||
- {{jsxref("Float16Array")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.