Skip to main content

$(round)

$(round [value] <decimals>)

Rounds a number. With no decimals it rounds to the nearest whole number; with decimals it displays that exact number of decimal places (so $(round 3.5 2) reads "3.50").

Examples

$(round 3.7)

Will display "4"

$(round 3.5 2)

Will display "3.50"

$(round $(math '{{viewers}} / 2') 1)

Will display half the viewer count with one decimal place