diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/math')
3 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/index.html index 1c3401c908..2b09b4de23 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/math/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/math/index.html @@ -76,7 +76,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math <dt>{{jsxref("Global_Objects/Math/cosh", "Math.cosh(x)")}}</dt> <dd>Returns the hyperbolic cosine of a number.</dd> <dt>{{jsxref("Global_Objects/Math/exp", "Math.exp(x)")}}</dt> - <dd>回傳 E<sup>x</sup>,x 為給定數值,E 為歐拉常數 (自然對數的底數)。</dd> + <dd>回傳 E^x,x 為給定數值,E 為歐拉常數 (自然對數的底數)。</dd> <dt>{{jsxref("Global_Objects/Math/expm1", "Math.expm1(x)")}}</dt> <dd>回傳 <code>exp(x)</code> 減去1的值。</dd> <dt>{{jsxref("Global_Objects/Math/floor", "Math.floor(x)")}}</dt> @@ -100,7 +100,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math <dt>{{jsxref("Global_Objects/Math/min", "Math.min([x[, y[, …]]])")}}</dt> <dd>回傳給定數值中的最小值。</dd> <dt>{{jsxref("Global_Objects/Math/pow", "Math.pow(x, y)")}}</dt> - <dd>回傳 x 的 y 次方,也就是 <code>x<sup>y</sup></code>。</dd> + <dd>回傳 x 的 y 次方,也就是 <code>x^y</code>。</dd> <dt>{{jsxref("Global_Objects/Math/random", "Math.random()")}}</dt> <dd>回傳一個 0 到 1 之間的偽隨機值。</dd> <dt>{{jsxref("Global_Objects/Math/round", "Math.round(x)")}}</dt> diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/pow/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/pow/index.html index 7119ba5862..4fedac7ef7 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/math/pow/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/math/pow/index.html @@ -7,7 +7,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow --- <div>{{JSRef}}</div> -<p><strong><code>Math.pow()</code></strong> 函式回傳 <code>base</code> 的 <code>exponent</code> 次方(幂)值,也就是 <code>base<sup>exponent</sup></code>。</p> +<p><strong><code>Math.pow()</code></strong> 函式回傳 <code>base</code> 的 <code>exponent</code> 次方(幂)值,也就是 <code>base^exponent</code>。</p> <h2 id="語法">語法</h2> @@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow <h2 id="敘述">敘述</h2> -<p>The <strong><code>Math.pow()</code></strong> function returns the <code>base</code> to the <code>exponent</code> power, that is, <code>base<sup>exponent</sup></code>, the base and the exponent are in decimal numeral system.</p> +<p>The <strong><code>Math.pow()</code></strong> function returns the <code>base</code> to the <code>exponent</code> power, that is, <code>base^exponent</code>, the base and the exponent are in decimal numeral system.</p> <p>由於 <code>pow()</code> 是 <code>Math</code> 的靜態方法,you always use it as <code>Math.pow()</code>, rather than as a method of a <code>Math</code> object you created(<code>Math</code> 並沒有建構子)。</p> diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/random/index.html b/files/zh-tw/web/javascript/reference/global_objects/math/random/index.html index 896d4ab948..6731d1c2b4 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/math/random/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/math/random/index.html @@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random <h2 id="範例">範例</h2> -<p>請留意JavaScript中的數字與許多語言一樣使用 IEEE 754 floating point numbers with round-to-nearest-even behavior, the ranges claimed for the functions below (excluding the one for <code>Math.random()</code> itself) aren't exact. If extremely large bounds are chosen (2<sup>53</sup> or higher), it's possible in <em>extremely</em> rare cases to calculate the usually-excluded upper bound.</p> +<p>請留意JavaScript中的數字與許多語言一樣使用 IEEE 754 floating point numbers with round-to-nearest-even behavior, the ranges claimed for the functions below (excluding the one for <code>Math.random()</code> itself) aren't exact. If extremely large bounds are chosen (2^53 or higher), it's possible in <em>extremely</em> rare cases to calculate the usually-excluded upper bound.</p> <h3 id="Getting_a_random_number_between_0_inclusive_and_1_exclusive">Getting a random number between 0 (inclusive) and 1 (exclusive)</h3> |
