# Help me please (Calculator project)

**URL:** <https://community.thunkable.com/t/help-me-please-calculator-project/1490861>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [September 6, 2021, 3:43pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861 "2021-09-06T15:43:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 3:43pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/1 "2021-09-06T15:43:30Z")

</div>

So i have to do the “+/-” button on calculator which changes the mark infront the number. For example i click on number 8 and then on “+/-” button and it must change to negative eight. Here is my try to do it but nothing worked so far.

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

---

<div class="post-metadata">

**Author:** ![rishabh\_2008](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rishabh_2008/32/112230_2.png) [@rishabh\_2008](https://community.thunkable.com/u/rishabh_2008)\
**Post date:** [September 6, 2021, 4:28pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/2 "2021-09-06T16:28:28Z")

</div>

Try my project [Thunkable](https://x.thunkable.com/projectPage/60f94675cbbc3b0011866984)  
Just see !!

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 4:37pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/3 "2021-09-06T16:37:42Z")

</div>

You dont have the “+/-” button which i need so much

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/b/5ba197c908059d481d657ea7fe449f6745dae6d9.jpeg)

---

<div class="post-metadata">

**Author:** ![rishabh\_2008](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rishabh_2008/32/112230_2.png) [@rishabh\_2008](https://community.thunkable.com/u/rishabh_2008)\
**Post date:** [September 6, 2021, 4:38pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/4 "2021-09-06T16:38:28Z")

</div>

Okay but I send my link for good UI

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 4:42pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/5 "2021-09-06T16:42:14Z")

</div>

The image you shared will not display “-” in front of the number. The code will set `app variable Display` to **True** or **False**.

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 4:44pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/6 "2021-09-06T16:44:20Z")

</div>

Can i share my project with You so You could help me please?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 4:49pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/7 "2021-09-06T16:49:00Z")

</div>

Do this.

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

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 4:52pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/8 "2021-09-06T16:52:41Z")

</div>

This one worked but calculator counts wrong. Example: -5 + 5 = 10, not 0.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 4:53pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/9 "2021-09-06T16:53:39Z")

</div>

This means you have problems in another place in your code.

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 4:54pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/10 "2021-09-06T16:54:09Z")

</div>

I need this to not just be visually “-” mark but mathematical element

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 4:56pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/11 "2021-09-06T16:56:13Z")

</div>

The code I showed you is 100% mathematical. There is a problem somewhere in your app.

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 4:57pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/12 "2021-09-06T16:57:06Z")

</div>

May i show You the code please?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 4:59pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/13 "2021-09-06T16:59:01Z")

</div>

OK. But tell me where are you testing in your code so I don’t have to read all the code if it is a big one.

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 5:01pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/14 "2021-09-06T17:01:29Z")

</div>

[Thunkable](https://x.thunkable.com/copy/0fc4fe3377632340de766cc11fdcd692) uncollapsed blocks are where im testing

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 5:05pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/15 "2021-09-06T17:05:31Z")

</div>

[https://x.thunkable.com/copy/f1904e63dd37479c8c9ecd7d325c7a1c](https://x.thunkable.com/copy/f1904e63dd37479c8c9ecd7d325c7a1c)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 5:08pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/16 "2021-09-06T17:08:35Z")

</div>

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

Check this and let me know.

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 5:12pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/17 "2021-09-06T17:12:41Z")

</div>

Works perfectly only when i want first digit to be negative but when i choose second digit as negative the button appears into divide button. For example -4 + 3 = -1 (works fine) 8 + (-4) = 2 for some reason, not 4.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 5:21pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/18 "2021-09-06T17:21:40Z")

</div>

Check how you process your input. I will not be able to go through all the blocks.

---

<div class="post-metadata">

**Author:** ![zomgerrl69gm6](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zomgerrl69gm6](https://community.thunkable.com/u/zomgerrl69gm6)\
**Post date:** [September 6, 2021, 5:38pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/19 "2021-09-06T17:38:14Z")

</div>

Now everything is working perfectly! Thank you so much!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 6, 2021, 5:48pm UTC](https://community.thunkable.com/t/help-me-please-calculator-project/1490861/20 "2021-09-06T17:48:37Z")

</div>

I quickly checked you code and found that you have **TWO** places for the “PlusMinus” button. This was the problem because the other one is “/”  
so 8/-4 = -2

[Next page](https://community.thunkable.com/t/help-me-please-calculator-project/1490861.md?page=2)
