Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

round Modifier

Rounds a number to a specified precision (number of digits after the decimal point). Defaults to 0, or whole numbers.

pi: 3.14159265359
{{ pi | round }}
{{ pi | round(2) }}
{{ Statamic::modify($pi)->round() }}
{{ Statamic::modify($pi)->round(2) }}
3
3.14
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →