# I need. Help with this converter app

**URL:** https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [August 22, 2023, 4:02pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783 "2023-08-22T16:02:58Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![xanwal86u7](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xanwal86u7](https://community.thunkable.com/u/xanwal86u7)
#### Post date: [August 22, 2023, 4:02pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/1 "2023-08-22T16:02:58Z")

</div>

So

I’m new to this… I’m not aware of coding and started just few days

So I’m making an app with thunkable and it’s a unit converter app

I’m having difficulty in it …  
So i wanna add two units

A1, B1 + A2, B2

B is the sub unit of A

The thing is 1 unit of A= 16 units of B

So if i want to add 2a, 15b + 1a, 3b it should give me the answer of 4a, 2b

How do i do that… please help

---

<div class="post-metadata">

### Author: ![tanishq](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tanishq/32/124339_2.png) [@tanishq](https://community.thunkable.com/u/tanishq)
#### Post date: [August 22, 2023, 4:26pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/2 "2023-08-22T16:26:24Z")

</div>

You can assign variables (like variable a and variable b ) which will be holding the values and then you can do the math

---

<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: [August 22, 2023, 4:37pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/3 "2023-08-22T16:37:55Z")

</div>

It seems like this is a two-step process:

1. Figure out the math that makes the conversions work
2. Code the blocks to convert the input values

Do you have a working algorithm for step 1? I would set that up before moving to step 2. The algorithm should go into depth as far as what happens with A, B, and the result. You’ve given one example of how that might be calculated but what are the actual individual steps of calculating the answer? Again, this is a math problem first and a coding problem second.

---

<div class="post-metadata">

### Author: ![xanwal86u7](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xanwal86u7](https://community.thunkable.com/u/xanwal86u7)
#### Post date: [August 22, 2023, 4:44pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/4 "2023-08-22T16:44:19Z")

</div>

Actually i was able to make a python script with the use gpt 3.5 . But i need an app…

I just want to add B1, and B2,  
If the sum is less than 16 then it can be the answer  
If the sum is more than 16 then divide the sum with 16,  
And add the quotient to sum of A1 and A2 and the remainder becomes the sum of (B1 and B2) it’s too complicated.

For example 2a, 5b + 3a 10b = 5a 15b

But 2a, 5b + 3a, 12b = 6a, 1b

---

<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: [August 22, 2023, 4:59pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/5 "2023-08-22T16:59:08Z")

</div>

Great, so you can now take that algorithm and start to connect blocks to create the mathematical calculations that you need.

If you get stuck, post a screenshot of your blocks or a link to your project.

---

<div class="post-metadata">

### Author: ![xanwal86u7](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xanwal86u7](https://community.thunkable.com/u/xanwal86u7)
#### Post date: [August 22, 2023, 7:03pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/6 "2023-08-22T19:03:11Z")

</div>

I’m sorry sir but I really don’t know how to use blocks in this case… I don’t know which one to use , I tried finding something on YouTube… but no help

---

<div class="post-metadata">

### Author: ![xanwal86u7](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xanwal86u7](https://community.thunkable.com/u/xanwal86u7)
#### Post date: [August 22, 2023, 7:04pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/7 "2023-08-22T19:04:27Z")

</div>

The thing is I don’t see any block that can separate quotient and reminder… I’m newbie in this

---

<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: [August 22, 2023, 7:37pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/8 "2023-08-22T19:37:57Z")

</div>

You can search the forums or look through the math functions in the documentation [here](https://docs.thunkable.com/blocks/blocks/math).

---

<div class="post-metadata">

### Author: ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)
#### Post date: [August 23, 2023, 7:42am UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/9 "2023-08-23T07:42:49Z")

</div>

here’s how you get quotient and remainder - you should try searching the forums or try reading the online docs.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25ba850b9f547973f7cc23a9fc7fb5dbf4724f87.png)

---

<div class="post-metadata">

### Author: ![xanwal86u7](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xanwal86u7](https://community.thunkable.com/u/xanwal86u7)
#### Post date: [August 23, 2023, 8:38am UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/10 "2023-08-23T08:38:39Z")

</div>

Thank you for this… is there any courses available that would help me to learn?

---

<div class="post-metadata">

### Author: ![xanwal86u7](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xanwal86u7](https://community.thunkable.com/u/xanwal86u7)
#### Post date: [August 23, 2023, 2:42pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/11 "2023-08-23T14:42:39Z")

</div>

![Untitled-1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/8/d8e4ede0d1fd709bec6e25044d5b49463ca6dc1f.jpeg)

\*remainder

---

<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: [August 23, 2023, 11:57pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/12 "2023-08-23T23:57:31Z")

</div>

In @manyone’s example, the remainder was in the form remainder(x÷y) and the quotient was in the form round down(x÷y).

In your screenshot, the “x” part is “B1’s Text + B2’s Text” so you need to use that for the second set of blocks as well in the form round down (x÷y).

Don’t use the “remainder of” block for the second part… use the division block (÷). And then a separate “round down” block as shown in @manyone’s screenshot.

If you want to share a link to your project, I can make a screenshot using your actual values.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [November 21, 2023, 11:58pm UTC](https://community.thunkable.com/t/i-need-help-with-this-converter-app/2556783/13 "2023-11-21T23:58:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
