aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/global_objects/math
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:08 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commite983b2b1955dfcf865421251a1fad00a6ccd5196 (patch)
tree792e047cba454c4010fc0b153edcc276b5cb7a77 /files/zh-cn/web/javascript/reference/global_objects/math
parent7a9db40025c2f387b4b75b4bd0d32a18a63c0d87 (diff)
downloadtranslated-content-e983b2b1955dfcf865421251a1fad00a6ccd5196.tar.gz
translated-content-e983b2b1955dfcf865421251a1fad00a6ccd5196.tar.bz2
translated-content-e983b2b1955dfcf865421251a1fad00a6ccd5196.zip
remove sup tag for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/math')
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html2
-rw-r--r--files/zh-cn/web/javascript/reference/global_objects/math/random/index.html2
6 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
index 14f5af47c3..9161628dfb 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/exp/index.html
@@ -6,7 +6,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp
<div>
{{JSRef("Global_Objects", "Math")}}</div>
<h2 id="Summary">概述</h2>
-<p><code><strong>Math.exp()</strong></code> 函数返回 <code>e<sup>x</sup></code>,<code>x</code> 表示参数,<code>e</code> 是<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/E">欧拉常数(Euler's constant)</a>,自然对数的底数。</p>
+<p><code><strong>Math.exp()</strong></code> 函数返回 <code>e^x</code>,<code>x</code> 表示参数,<code>e</code> 是<a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Math/E">欧拉常数(Euler's constant)</a>,自然对数的底数。</p>
<h2 id="Syntax">语法</h2>
<pre class="syntaxbox"><code>Math.exp(<em>x</em>)</code></pre>
<h3 id="Parameters">参数</h3>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
index 0fd773ece9..1b463f2c22 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/expm1/index.html
@@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/expm1
<h2 id="Summary">概述</h2>
-<p><code><strong>Math.expm1()</strong></code> 函数返回 <code>E<sup>x</sup> - 1</code>, 其中 <code>x</code> 是该函数的参数, <code>E</code> 是自然对数的底数 <code>2.718281828459045.</code></p>
+<p><code><strong>Math.expm1()</strong></code> 函数返回 <code>E^x - 1</code>, 其中 <code>x</code> 是该函数的参数, <code>E</code> 是自然对数的底数 <code>2.718281828459045.</code></p>
<h2 id="Syntax">语法</h2>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
index b4790b6448..630c3b5d1c 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/fround/index.html
@@ -47,7 +47,7 @@ Math.fround(1.5) === 1.5; // true</pre>
Math.fround(1.337) === 1.337; // false
</pre>
-<p>2<sup>150</sup> 超出32位浮点,所以返回<code>Infinity</code>:</p>
+<p>2^150 超出32位浮点,所以返回<code>Infinity</code>:</p>
<pre class="brush: js">2 ** 150; // 1.42724769270596e+45
Math.fround(2 ** 150); // Infinity
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
index ae08c53771..4e67bcef28 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/index.html
@@ -80,7 +80,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
<dt>{{jsxref("Global_Objects/Math/cosh", "Math.cosh(<var>x</var>)")}}</dt>
<dd>返回一个数的双曲余弦值。</dd>
<dt>{{jsxref("Global_Objects/Math/exp", "Math.exp(<var>x</var>)")}}</dt>
- <dd>返回欧拉常数的参数次方,<code>E<var><sup>x</sup></var></code>,其中 <code><var>x</var></code> 为参数,<code>E</code> 是欧拉常数(2.718...,自然对数的底数)。</dd>
+ <dd>返回欧拉常数的参数次方,<code>E<var>^x</var></code>,其中 <code><var>x</var></code> 为参数,<code>E</code> 是欧拉常数(2.718...,自然对数的底数)。</dd>
<dt>{{jsxref("Global_Objects/Math/expm1", "Math.expm1(<var>x</var>)")}}</dt>
<dd>返回 <code>exp(x) - 1</code> 的值。</dd>
<dt>{{jsxref("Global_Objects/Math/floor", "Math.floor(<var>x</var>)")}}</dt>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
index 7e9b8ba09e..71adb345fe 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/pow/index.html
@@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow
---
<div>{{JSRef}}</div>
-<p><code><strong>Math.pow()</strong></code> 函数返回基数(<code>base</code>)的指数(<code>exponent</code>)次幂,即 <code>base<sup>exponent</sup></code>。</p>
+<p><code><strong>Math.pow()</strong></code> 函数返回基数(<code>base</code>)的指数(<code>exponent</code>)次幂,即 <code>base^exponent</code>。</p>
<p>{{EmbedInteractiveExample("pages/js/math-pow.html")}}</p>
diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
index 6924bb32c5..84c07215f2 100644
--- a/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
+++ b/files/zh-cn/web/javascript/reference/global_objects/math/random/index.html
@@ -29,7 +29,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random
<h2 id="Examples">示例</h2>
-<p>请注意, 由于 JavaScript 中的数字是 IEEE 754 浮点数字,具有最近舍入( round-to-nearest-even)的行为, 因此以下函数的范围 (不包括<code>Math.random()</code> 本身) 并不准确。如果选择了非常大的边界 (2<sup>53</sup> 或更高), 在极罕见的情况下会计算通常-排除(usually-excluded)的上界。(注:round-to-nearest-even采用最近舍入的去偶数舍入的方式,对.5的舍入上,采用取偶数的方式)</p>
+<p>请注意, 由于 JavaScript 中的数字是 IEEE 754 浮点数字,具有最近舍入( round-to-nearest-even)的行为, 因此以下函数的范围 (不包括<code>Math.random()</code> 本身) 并不准确。如果选择了非常大的边界 (2^53 或更高), 在极罕见的情况下会计算通常-排除(usually-excluded)的上界。(注:round-to-nearest-even采用最近舍入的去偶数舍入的方式,对.5的舍入上,采用取偶数的方式)</p>
<h3 id="得到一个大于等于0,小于1之间的随机数">得到一个大于等于0,小于1之间的随机数</h3>