You are reading the documentation for an outdated Corteza release. 2023.9 is the latest stable Corteza release.

Metric page block samples

Divide the result by 1000 to show cost in thousands

v / 1000

Round result to remove decimal places

Math.round(v)

Round result to remove decimal places (round up)

Math.ceil(v)

Round result to remove decimal places (round down)

Math.floor(v)

Round result to two decimal places

Math.round(v * 100) / 100

Expressions use standard JavaScript syntax, so you can use any standard JavaScript expression.

You can specify rounding with the value formatting.