From 7a9db40025c2f387b4b75b4bd0d32a18a63c0d87 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove sup tag for zh-TW --- files/zh-tw/web/javascript/reference/global_objects/math/index.html | 4 ++-- .../zh-tw/web/javascript/reference/global_objects/math/pow/index.html | 4 ++-- .../web/javascript/reference/global_objects/math/random/index.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-tw/web/javascript/reference/global_objects/math') 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
{{jsxref("Global_Objects/Math/cosh", "Math.cosh(x)")}}
Returns the hyperbolic cosine of a number.
{{jsxref("Global_Objects/Math/exp", "Math.exp(x)")}}
-
回傳 Ex,x 為給定數值,E 為歐拉常數 (自然對數的底數)。
+
回傳 E^x,x 為給定數值,E 為歐拉常數 (自然對數的底數)。
{{jsxref("Global_Objects/Math/expm1", "Math.expm1(x)")}}
回傳 exp(x) 減去1的值。
{{jsxref("Global_Objects/Math/floor", "Math.floor(x)")}}
@@ -100,7 +100,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
{{jsxref("Global_Objects/Math/min", "Math.min([x[, y[, …]]])")}}
回傳給定數值中的最小值。
{{jsxref("Global_Objects/Math/pow", "Math.pow(x, y)")}}
-
回傳 x 的 y 次方,也就是 xy
+
回傳 x 的 y 次方,也就是 x^y
{{jsxref("Global_Objects/Math/random", "Math.random()")}}
回傳一個 0 到 1 之間的偽隨機值。
{{jsxref("Global_Objects/Math/round", "Math.round(x)")}}
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 ---
{{JSRef}}
-

Math.pow() 函式回傳 baseexponent 次方(幂)值,也就是 baseexponent

+

Math.pow() 函式回傳 baseexponent 次方(幂)值,也就是 base^exponent

語法

@@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/pow

敘述

-

The Math.pow() function returns the base to the exponent power, that is, baseexponent, the base and the exponent are in decimal numeral system.

+

The Math.pow() function returns the base to the exponent power, that is, base^exponent, the base and the exponent are in decimal numeral system.

由於 pow()Math 的靜態方法,you always use it as Math.pow(), rather than as a method of a Math object you created(Math 並沒有建構子)。

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

範例

-

請留意JavaScript中的數字與許多語言一樣使用 IEEE 754 floating point numbers with round-to-nearest-even behavior, the ranges claimed for the functions below (excluding the one for Math.random() itself) aren't exact. If extremely large bounds are chosen (253 or higher), it's possible in extremely rare cases to calculate the usually-excluded upper bound.

+

請留意JavaScript中的數字與許多語言一樣使用 IEEE 754 floating point numbers with round-to-nearest-even behavior, the ranges claimed for the functions below (excluding the one for Math.random() itself) aren't exact. If extremely large bounds are chosen (2^53 or higher), it's possible in extremely rare cases to calculate the usually-excluded upper bound.

Getting a random number between 0 (inclusive) and 1 (exclusive)

-- cgit v1.2.3-54-g00ecf