# How to modulo ? Is this title too short now?

**URL:** https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [July 4, 2021, 12:54pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289 "2021-07-04T12:54:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)
#### Post date: [July 4, 2021, 12:54pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/1 "2021-07-04T12:54:55Z")

</div>

hey, where can i get the modulo block ?  
there is this one but I don’t understand how it’s work:  
 ![block](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7fc3da9085b748ac5d9d23bb0e95baf3c9d5d066.png)  
if i’m not wrong it should return “4” , but i get “0” .

There is a ceilling/floor block in the doc but nothing in the thunkable site.  
fallency

---

<div class="post-metadata">

### Author: ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)
#### Post date: [July 4, 2021, 2:08pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/2 "2021-07-04T14:08:31Z")

</div>

Show your blocks.

---

<div class="post-metadata">

### Author: ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)
#### Post date: [July 4, 2021, 2:23pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/3 "2021-07-04T14:23:00Z")

</div>

hey, thats pretty much the block, and his interaction.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/9308d3e6f3c3877c66bbfe6b76c68f4c5a093874.png)

---

<div class="post-metadata">

### Author: ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)
#### Post date: [July 4, 2021, 3:05pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/4 "2021-07-04T15:05:38Z")

</div>

Do you ever change Label 1 to anything else?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [July 4, 2021, 3:35pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/5 "2021-07-04T15:35:13Z")

</div>

I think you’ll need to post a link to your project. Because those math blocks are rock solid. There’s something else we can’t see that’s causing the problem.

You’re also fitting a lot of code into a `when text input changes` block. If you’re typing numbers quickly, that might not work so well.

And yes, `remainder of 64 ÷ 10` equals 4.

---

<div class="post-metadata">

### Author: ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)
#### Post date: [July 4, 2021, 4:38pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/6 "2021-07-04T16:38:24Z")

</div>

It’s a really fast made project, not optimal at all, I’ll post the project as soon as possible.  
It’s a greater/less kind of game, there is a random generated number and you need to find it, but thanks to two little quotes at the bottom of the screen, you will be able to know this number.

Edit:[Thunkable](https://x.thunkable.com/copy/8da198c7bd2805a0632569b2baf9ab5d)

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [July 4, 2021, 4:58pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/7 "2021-07-04T16:58:17Z")

</div>

It looks like it’s working. Label1 has the value 4 when I preview the project and start typing numbers.

Because those remainders won’t change, you should set the remainder values when the screen opens rather than when the text input changes. Otherwise, you’re just calculating those same values over and over again as the user types in numbers.

---

<div class="post-metadata">

### Author: ![fallency78](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fallency78](https://community.thunkable.com/u/fallency78)
#### Post date: [July 4, 2021, 11:52pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/8 "2021-07-04T23:52:16Z")

</div>

Got it, thanks

---

<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, 1:19pm UTC](https://community.thunkable.com/t/how-to-modulo-is-this-title-too-short-now/1378289/9 "2024-11-08T13:19:55Z")

</div>


