Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ <h4><strong>formatColumn()</strong> - format a list of values for column-display
<h4><strong>formatNumber()</strong> - format a number with custom precision and localisation</h4>

<p>The base function of the library, which takes any number or array of numbers, runs <code>accounting.unformat()</code> to remove any formatting, and returns the number(s) formatted with separated thousands and custom precision:</p>
<pre class="prettyprint lang-js">accounting.formatNumber(5318008); // 5,318,008
accounting.formatNumber(9876543.21, 3, " "); // 9 876 543.210</pre>
<pre class="prettyprint lang-js">accounting.formatNumber(5318008); // "5,318,008"
accounting.formatNumber(9876543.21, 3, " "); // "9 876 543.210"</pre>


<h4><strong>toFixed()</strong> - better rounding for floating point numbers</h4>
Expand Down