githubEdit

$round

Computes number rounded to precision.

Signature

{{$round number [precision=0] [format]}}

Arguments

Name
Description
Type
Required

number

Array of numbers.

Number

precision

Decimal precision to round to. Default=0

Number

format

Format string used to format the result

String

Returns

Returns the rounded value.

Example

{{$round avg_age}}

Last updated

Was this helpful?