diff options
Diffstat (limited to 'files/zh-tw/web/javascript/reference/global_objects/number/tofixed/index.html')
-rw-r--r-- | files/zh-tw/web/javascript/reference/global_objects/number/tofixed/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-tw/web/javascript/reference/global_objects/number/tofixed/index.html b/files/zh-tw/web/javascript/reference/global_objects/number/tofixed/index.html index addec4288b..99a2ef5dc6 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/number/tofixed/index.html +++ b/files/zh-tw/web/javascript/reference/global_objects/number/tofixed/index.html @@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toFixed <h2 id="語法">語法</h2> -<pre class="syntaxbox notranslate"><code><var>numObj</var>.toFixed([<var>digits</var>])</code></pre> +<pre class="syntaxbox"><code><var>numObj</var>.toFixed([<var>digits</var>])</code></pre> <h3 id="參數">參數</h3> @@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Number/toFixed <h3 id="Using_toFixed">Using <code>toFixed</code></h3> -<pre class="brush: js notranslate">var numObj = 12345.6789; +<pre class="brush: js">var numObj = 12345.6789; numObj.toFixed(); // Returns '12346': note rounding, no fractional part numObj.toFixed(1); // Returns '12345.7': note rounding |