Commit 3f71bf5a authored by juliusv's avatar juliusv

Merge pull request #32 from prometheus/clarify-round

Clarify that to_nearest may be a fraction in round().
parents 5c6a5fd0 f7aa296c
......@@ -100,7 +100,7 @@ rate(http_requests_total{job="api-server"}[5m])
`round(v instant-vector, to_nearest=1 scalar)` rounds the sample values of all
elements in `v` to the nearest integer. Ties are resolved by rounding up. The
optional `to_nearest` argument allows specifying the nearest multiple to which
the sample values should be rounded.
the sample values should be rounded. This multiple may also be a fraction.
## `scalar()`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment