From 67835e236f1927ba5ef69e28ef05abb19bc14745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20Monta=C3=B1o?= Date: Sun, 10 Dec 2017 18:18:49 -0600 Subject: [PATCH] Add string indicator to formatNumber docs --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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