diff options
Diffstat (limited to 'files/zh-cn/web/javascript/guide')
-rw-r--r-- | files/zh-cn/web/javascript/guide/expressions_and_operators/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/javascript/guide/numbers_and_dates/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html index cd87597de3..be9944cc48 100644 --- a/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html +++ b/files/zh-cn/web/javascript/guide/expressions_and_operators/index.html @@ -293,7 +293,7 @@ var var2 = 4;</pre> </tr> <tr> <td>指数运算符(**)</td> - <td>计算 <code>base(底数)</code> 的 <code>exponent(</code>指数<code>)次方</code>, 表示为<code>base<sup>exponent</sup></code></td> + <td>计算 <code>base(底数)</code> 的 <code>exponent(</code>指数<code>)次方</code>, 表示为<code>base^exponent</code></td> <td> <p><code>2 ** 3</code> returns <code>8</code>.<br> <code>10 ** -1</code> returns <code>0.1</code>.</p> diff --git a/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html b/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html index bab62dcd97..0c628571b1 100644 --- a/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html +++ b/files/zh-cn/web/javascript/guide/numbers_and_dates/index.html @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Guide/Numbers_and_dates <h2 id="数字">数字</h2> -<p>在 JavaScript 里面,数字均为双精度浮点类型(<a href="https://en.wikipedia.org/wiki/Double-precision_floating-point_format">double-precision 64-bit binary format IEEE 754</a>),即一个介于±2<sup>−1023</sup>和±2<sup>+1024</sup>之间的数字,或约为±10<sup>−308</sup>到±10<sup>+308</sup>,数字精度为53位。整数数值仅在±(2<sup>53 -</sup> 1)的范围内可以表示准确。</p> +<p>在 JavaScript 里面,数字均为双精度浮点类型(<a href="https://en.wikipedia.org/wiki/Double-precision_floating-point_format">double-precision 64-bit binary format IEEE 754</a>),即一个介于±2^−1023和±2^+1024之间的数字,或约为±10^−308到±10^+308,数字精度为53位。整数数值仅在±(2^53 - 1)的范围内可以表示准确。</p> <p>除了能够表示浮点数,数字类型也还能表示三种符号值: <code>+</code>{{jsxref("Infinity")}}(正无穷)、<code>-</code>{{jsxref("Infinity")}}(负无穷)和 {{jsxref("NaN")}} (not-a-number,非数字)。</p> |