summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-11 09:34:12 +0300
committerPaul Buetow <paul@buetow.org>2026-04-11 09:34:12 +0300
commit6c0cc3bf44931cf51359d1ac2824df76d74ea837 (patch)
tree52f251b63248216ee0b01af3758ab8e3a27c6e1d
parenta5b9ca23e2e0e08a5908a723e93fe89685afb28b (diff)
b0: clarify percentage() docsHEADmaster
-rw-r--r--doc/querylanguage.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/querylanguage.md b/doc/querylanguage.md
index 3d134e3..c588e4a 100644
--- a/doc/querylanguage.md
+++ b/doc/querylanguage.md
@@ -61,5 +61,5 @@ FUNCTION := md5sum|maskdigits
* `rorder` stands for reverse order.
* `lacks` is an alias for `ncontains` (not contains).
* Available fields (variables and barewords) vary from the log format used. Check out the [log format](./logformats.md) documentation for more information.
-* `percentage(field)` returns the selected group's share of the total for that field across all groups, expressed as a value between 0 and 100.
+* `percentage(field)` returns the selected group's share of the total for that field across all groups. For non-negative inputs, the result is between 0 and 100; with mixed positive and negative values, it can fall outside that range.
* `percentile(field)` returns the percentile rank of the selected group's value among all grouped values for that field, also expressed as a value between 0 and 100. Equal values share the same rank.