round() Query Function

Rounds a numeric input field how=round (default), how=floor or how=ceil.

Parameters

Name

Type

Required

Default

Description

field

string

Yes

The names of the field to round.

as

string

No

The output name of the field to round. Defaults to the same as the input field.

how

string

No

round

How to round (round, ceil, floor).

The implied parameter is field.

Examples

Round a number:

humio
round(myvalue)

Round a number:

humio
timechart(function=max(value)) | round(_max, how=floor)