# How do I round down to the nearest 10?

**URL:** <https://community.thunkable.com/t/how-do-i-round-down-to-the-nearest-10/245296>\
**Category:** Questions about Thunkable X\
**Created:** [September 26, 2019, 10:15am UTC](https://community.thunkable.com/t/how-do-i-round-down-to-the-nearest-10/245296 "2019-09-26T10:15:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![karelrosseel82](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/karelrosseel82/32/44383_2.png) [@karelrosseel82](https://community.thunkable.com/u/karelrosseel82)\
**Post date:** [September 26, 2019, 10:15am UTC](https://community.thunkable.com/t/how-do-i-round-down-to-the-nearest-10/245296/1 "2019-09-26T10:15:23Z")

</div>

@Domhell

I try to make it possilble to round a number that is not a comma 😊 problem…

but taking the first number, with extra a nummeric 0 is not possible

BUT I found ‘round down’  
BUT IS THIS ONLY FOR COMMA NUMBERS?

Please who can help me: because teacher in school only first let children do maths with the T (first number with zero) and than the rest…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/88b6bc1341234e9b9018526f51dddbd56cf3b9bf.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 26, 2019, 11:46am UTC](https://community.thunkable.com/t/how-do-i-round-down-to-the-nearest-10/245296/2 "2019-09-26T11:46:43Z")

</div>

@karelrosseel82 I’ve moved this question to its own topic since it specifically concerns using the `round` block.

The first question in your screen shot asks:

**"is round down only for numbers like 3.1 i.e. decimal numbers"**

Yes, all 3 of these options expect a comma number (decimal number) and return an appropriate whole number (integer).

![rounding](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/5/554d43db6f16bebbd85024365dac12f425f3acc4.png)

To test a block like this for yourself you can create a new test project and do something like this:  
 ![testing](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/2353b9974166ae9efa2102f60ef3096ba364a6e1.png)

If you now preview this in Thunkable Live you can try out different combinations of number and rounding for yourself.

For example:

- round(6.1) = 6
- round(6.8) = 7
- round\_up(6.1) = 7
- round\_up(6.8) = 7
- round\_down(6.1) = 6
- round\_down(6.8) = 6

* * *

Your second question then, is something like:

**"Can I disregard the ones value of a number, i.e round down to the nearest tens value?**

Again, this is pretty straightforward if you break it down into smaller pieces.

- The first thing is to divide your number by 10, thus 61 becomes 6.1, 68 would become 6.8
- Next, round down the result of this calculation so 6.1 becomes 6 and 6.8 also becomes 6  
\*Finally, multiply the answer by 10 to get 60

![round_to_nearest_10](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/1/b199092da5c3fefd54e21fbd621328928a472e83.png)

Hope that helps.

---

<div class="post-metadata">

**Author:** ![karelrosseel82](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/karelrosseel82/32/44383_2.png) [@karelrosseel82](https://community.thunkable.com/u/karelrosseel82)\
**Post date:** [October 1, 2019, 5:10am UTC](https://community.thunkable.com/t/how-do-i-round-down-to-the-nearest-10/245296/3 "2019-10-01T05:10:18Z")

</div>

It worked perfectly, thank you very much

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e9d282e8b22ecc492ddb92f5145351646da87113.png)

here is my example  
[https://x.thunkable.com/copy/c35abb225e0ecb3efee8b3c599e48d49](https://x.thunkable.com/copy/c35abb225e0ecb3efee8b3c599e48d49)

I will make it fansier also

Greetings  
Karel

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:08pm UTC](https://community.thunkable.com/t/how-do-i-round-down-to-the-nearest-10/245296/4 "2024-11-08T12:08:47Z")

</div>


