From a83dd68e55cd0f46d56bef85edc3bc249f2ec87d Mon Sep 17 00:00:00 2001 From: An Phan Date: Tue, 19 Apr 2016 16:14:57 +0800 Subject: [PATCH] Amend doc for new currency argument --- src/api/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/api/index.md b/src/api/index.md index 25586010dc..33185644fb 100644 --- a/src/api/index.md +++ b/src/api/index.md @@ -1897,6 +1897,7 @@ type: api - **Arguments:** - `{String} [symbol] - default: '$'` + - `{Number} [decimal places] - default: 2` - **Example:** @@ -1914,6 +1915,14 @@ type: api *12345 => £12,345.00* + Some currencies have 3 or 4 decimal places, while some others have none, for example Japanese Yen (¥) or Vietnamese Dong (₫): + + ``` html + {{ amount | currency '₫' 0 }} + ``` + + *12345 => ₫12,345* + ### pluralize - **Arguments:**