diff --git a/index.html b/index.html index 49aa9d7..0e17199 100644 --- a/index.html +++ b/index.html @@ -82,8 +82,8 @@

formatColumn() - format a list of values for column-display

formatNumber() - format a number with custom precision and localisation

The base function of the library, which takes any number or array of numbers, runs accounting.unformat() to remove any formatting, and returns the number(s) formatted with separated thousands and custom precision:

-
accounting.formatNumber(5318008); // 5,318,008
-accounting.formatNumber(9876543.21, 3, " "); // 9 876 543.210
+
accounting.formatNumber(5318008); // "5,318,008"
+accounting.formatNumber(9876543.21, 3, " "); // "9 876 543.210"

toFixed() - better rounding for floating point numbers