diff options
| author | alattalatta <urty5656@gmail.com> | 2021-11-21 20:57:31 +0900 |
|---|---|---|
| committer | hochan Lee <hochan049@gmail.com> | 2021-12-14 01:02:01 +0900 |
| commit | 751187f65c9eec62df17f46166f1b9faaec4c61e (patch) | |
| tree | 441f92b6ef9344f7a348f41e2c9ba0b82e755ca7 /files/ko/web/javascript/reference/global_objects/number/parsefloat/index.md | |
| parent | 9d21b2eff5b3811540d818dce7f9d7df230ef2f3 (diff) | |
| download | translated-content-751187f65c9eec62df17f46166f1b9faaec4c61e.tar.gz translated-content-751187f65c9eec62df17f46166f1b9faaec4c61e.tar.bz2 translated-content-751187f65c9eec62df17f46166f1b9faaec4c61e.zip | |
Rename parseFloat/parseInt to md
Diffstat (limited to 'files/ko/web/javascript/reference/global_objects/number/parsefloat/index.md')
| -rw-r--r-- | files/ko/web/javascript/reference/global_objects/number/parsefloat/index.md | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/number/parsefloat/index.md b/files/ko/web/javascript/reference/global_objects/number/parsefloat/index.md new file mode 100644 index 0000000000..0b57723065 --- /dev/null +++ b/files/ko/web/javascript/reference/global_objects/number/parsefloat/index.md @@ -0,0 +1,77 @@ +--- +title: Number.parseFloat() +slug: Web/JavaScript/Reference/Global_Objects/Number/parseFloat +tags: + - ECMAScript 2015 + - JavaScript + - Method + - Number +translation_of: Web/JavaScript/Reference/Global_Objects/Number/parseFloat +--- +<div>{{JSRef}}</div> + +<p><strong><code>Number.parseFloat()</code></strong> 메서드는 문자열을 분석해 부동소수점 실수로 반환합니다.</p> + +<div>{{EmbedInteractiveExample("pages/js/number-parsefloat.html")}}</div> + + + +<h2 id="구문">구문</h2> + +<pre class="syntaxbox">Number.parseFloat(<var>string</var>)</pre> + +<h3 id="매개변수">매개변수</h3> + +<p>{{page("ko/docs/Web/JavaScript/Reference/Global_Objects/parseFloat", "매개변수")}}</p> + +<h3 id="반환_값">반환 값</h3> + +<p>{{page("ko/docs/Web/JavaScript/Reference/Global_Objects/parseFloat", "반환 값")}}</p> + +<h2 id="설명">설명</h2> + +<p><code>Number.parseFloat()</code> 메서드는 전역 {{jsxref("parseFloat", "parseFloat()")}} 함수와 같은 기능을 가지고 있습니다.</p> + +<pre>Number.parseFloat === parseFloat; // true</pre> + +<p><code>Number.parseFloat()는</code> ECMAScript 2015에서 전역 범위의 모듈화를 위해 추가됐습니다. 상세한 정보와 예제는 {{jsxref("parseFloat", "parseFloat()")}}를 참고하세요.</p> + +<h2 id="폴리필">폴리필</h2> + +<pre class="brush: js">if (Number.parseFloat === undefined) { + Number.parseFloat = parseFloat; +} +</pre> + +<h2 id="명세">명세</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('ES2015', '#sec-number.parsefloat', 'Number.parseFloat')}}</td> + <td>{{Spec2('ES2015')}}</td> + <td>Initial definition.</td> + </tr> + <tr> + <td>{{SpecName('ESDraft', '#sec-number.parsefloat', 'Number.parseFloat')}}</td> + <td>{{Spec2('ESDraft')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="브라우저_호환성">브라우저 호환성</h2> + +<div>{{Compat("javascript.builtins.Number.parseFloat")}}</div> + +<h2 id="같이_보기">같이 보기</h2> + +<ul> + <li>메서드가 속한 {{jsxref("Number")}} 객체.</li> + <li>전역 {{jsxref("parseFloat", "parseFloat()")}} 메서드.</li> +</ul> |
