# Could somebody make a round to nearest block?

**URL:** https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049
**Category:** Arcade
**Tags:** extension
**Created:** [March 31, 2026, 8:56pm UTC](https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049 "2026-03-31T20:56:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![SouperMediocre1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soupermediocre1/32/22579_2.png) [@SouperMediocre1](https://forum.makecode.com/u/SouperMediocre1)
#### Post date: [March 31, 2026, 8:56pm UTC](https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049/1 "2026-03-31T20:56:55Z")

</div>

could somebody make an extension or tell me about an existing one if there is one, that contains a block that can round a number to the nearest X number

(It would be really convenient for the project I am working on to be able to round to the nearest 24 or 12 for example)

---

<div class="post-metadata">

### Author: ![KawaiiGoddess](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kawaiigoddess/32/33722_2.png) [@KawaiiGoddess](https://forum.makecode.com/u/KawaiiGoddess)
#### Post date: [April 1, 2026, 12:17am UTC](https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049/2 "2026-04-01T00:17:19Z")

</div>

![arcade-screenshot (16)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/7/e7b33db101801f61e4b463b715e3f489f960b6bd.png)Is this what you were looking for?

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [April 1, 2026, 12:18am UTC](https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049/3 "2026-04-01T00:18:34Z")

</div>

![Screenshot 2026-03-31 5.30.17 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/7/574468cb1b551026683d8697bd45360af47ab514.png) does this not work for you?

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [April 1, 2026, 12:20am UTC](https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049/4 "2026-04-01T00:20:14Z")

</div>

Just a bit of math:

> **[round to nearest](https://arcade.makecode.com/S43103-25913-25982-14995)**
>
> A function that rounds a number to the nearest multiple of a value.

---

<div class="post-metadata">

### Author: ![SouperMediocre1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/soupermediocre1/32/22579_2.png) [@SouperMediocre1](https://forum.makecode.com/u/SouperMediocre1)
#### Post date: [April 2, 2026, 5:05pm UTC](https://forum.makecode.com/t/could-somebody-make-a-round-to-nearest-block/43049/5 "2026-04-02T17:05:27Z")

</div>

oh thats helpful, didnt realize it would be that easy to do.
