<round>
Widely availableSince 202492% of users
A math function that rounds a value to the nearest multiple of another value. For example, you can use it to ensure a width always rounds to the nearest 10 pixels.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since May 2024. Widely available since November 2026.
See how modern your own CSS is.Check your CSS →
Quick example
.box {
/* Rounds 15.7px to the nearest multiple of 10px (which is 20px) */
width: round(15.7px, 10px);
}<round> browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2024.Safe to use without fallbacks.
Usage92%of people can use this8% use a browser without it.
Browsers
125+
118+
15.4+
125+Mobile
125+Android
118+Android
15.4+iOS