-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[zh-TW]: create Math.LN10
#25023
Merged
Merged
[zh-TW]: create Math.LN10
#25023
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
files/zh-tw/web/javascript/reference/global_objects/math/ln10/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: Math.LN10 | ||
slug: Web/JavaScript/Reference/Global_Objects/Math/LN10 | ||
l10n: | ||
sourceCommit: 2ec170b6264d51a15be498ac99b8a30b3dadec15 | ||
--- | ||
|
||
{{JSRef}} | ||
|
||
**`Math.LN10`** 是靜態數據屬性,表示 10 的自然對數值,約為 2.303。 | ||
|
||
{{EmbedInteractiveExample("pages/js/math-ln10.html", "shorter")}} | ||
|
||
## 值 | ||
|
||
<!-- prettier-ignore-start --> | ||
<math display="block"> | ||
<semantics><mrow><mi>𝙼𝚊𝚝𝚑.𝙻𝙽𝟷𝟶</mi><mo>=</mo><mo lspace="0em" rspace="0em">ln</mo><mo stretchy="false">(</mo><mn>10</mn><mo stretchy="false">)</mo><mo>≈</mo><mn>2.303</mn></mrow><annotation encoding="TeX">\mathtt{Math.LN10} = \ln(10) \approx 2.303</annotation></semantics> | ||
</math> | ||
<!-- prettier-ignore-end --> | ||
|
||
{{js_property_attributes(0, 0, 0)}} | ||
|
||
## 描述 | ||
|
||
由於 `LN10` 是 `Math` 的靜態屬性,因此你應始終以 `Math.LN10` 的方式使用,而非作為某個 `Math` 物件的屬性(`Math` 並不是建構函式)。 | ||
|
||
## 範例 | ||
|
||
### 使用 Math.LN10 | ||
|
||
以下函式返回 10 的自然對數值: | ||
|
||
```js | ||
function getNatLog10() { | ||
return Math.LN10; | ||
} | ||
|
||
getNatLog10(); // 2.302585092994046 | ||
``` | ||
|
||
## 規範 | ||
|
||
{{Specifications}} | ||
|
||
## 瀏覽器相容性 | ||
|
||
{{Compat}} | ||
|
||
## 參見 | ||
|
||
- {{jsxref("Math.exp()")}} | ||
- {{jsxref("Math.log()")}} | ||
- {{jsxref("Math.log10()")}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.