summaryrefslogtreecommitdiffstats
path: root/docs/data
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-18 21:38:16 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-05-18 21:38:16 +0300
commit42fbded1055d0f49d8c00cf7344edf2017b08ac9 (patch)
treec21734b68bb63a5890fd6d75669ff82d4e7adb72 /docs/data
parent10287263f529181d3169668b044cb84e2e3b049a (diff)
docs: Regenerate docs helper
Diffstat (limited to 'docs/data')
-rw-r--r--docs/data/docs.json31
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/data/docs.json b/docs/data/docs.json
index e4f85e9fa..852b110e7 100644
--- a/docs/data/docs.json
+++ b/docs/data/docs.json
@@ -869,6 +869,37 @@
}
},
"lang": {
+ "NumFmt": {
+ "Description": "NumFmt formats a number with the given precision using the\nnegative, decimal, and grouping options. The `options`\nparameter is a string consisting of `\u003cnegative\u003e \u003cdecimal\u003e \u003cgrouping\u003e`. The\ndefault `options` value is `- . ,`.\n\nNote that numbers are rounded up at 5 or greater.\nSo, with precision set to 0, 1.5 becomes `2`, and 1.4 becomes `1`.",
+ "Args": [
+ "precision",
+ "number",
+ "options"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{ lang.NumFmt 2 12345.6789 }}",
+ "12,345.68"
+ ],
+ [
+ "{{ lang.NumFmt 2 12345.6789 \"- , .\" }}",
+ "12.345,68"
+ ],
+ [
+ "{{ lang.NumFmt 6 -12345.6789 \"- .\" }}",
+ "-12345.678900"
+ ],
+ [
+ "{{ lang.NumFmt 0 -12345.6789 \"- . ,\" }}",
+ "-12,346"
+ ],
+ [
+ "{{ -98765.4321 | lang.NumFmt 2 }}",
+ "-98,765.43"
+ ]
+ ]
+ },
"Translate": {
"Description": "Translate ...",
"Args": [