# I tried both codes but it always gives me 0, for example I insert 10 which should give me 101 and it gives me 0

**URL:** <https://community.thunkable.com/t/i-tried-both-codes-but-it-always-gives-me-0-for-example-i-insert-10-which-should-give-me-101-and-it-gives-me-0/2188981>\
**Category:** Questions about Thunkable X\
**Created:** [December 22, 2022, 5:35pm UTC](https://community.thunkable.com/t/i-tried-both-codes-but-it-always-gives-me-0-for-example-i-insert-10-which-should-give-me-101-and-it-gives-me-0/2188981 "2022-12-22T17:35:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpocwgf02x](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@tpocwgf02x](https://community.thunkable.com/u/tpocwgf02x)\
**Post date:** [December 22, 2022, 5:35pm UTC](https://community.thunkable.com/t/i-tried-both-codes-but-it-always-gives-me-0-for-example-i-insert-10-which-should-give-me-101-and-it-gives-me-0/2188981/1 "2022-12-22T17:35:43Z")

</div>

![BINARIO](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/a/1a155de50b78fbf8d097d32570500455399b82d1.png)  
 ![binario2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/e/4e86847350b2014e2ede0295243e2e0bf49e54ba.png)

---

<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:** [December 22, 2022, 7:46pm UTC](https://community.thunkable.com/t/i-tried-both-codes-but-it-always-gives-me-0-for-example-i-insert-10-which-should-give-me-101-and-it-gives-me-0/2188981/2 "2022-12-22T19:46:50Z")

</div>

Please don’t start a new topic for an existing issue. Add details to your original topic instead:

> [@Can anyone give me a suggestion to make an app to convert decimal to binary?](https://community.thunkable.com/t/can-anyone-give-me-a-suggestion-to-make-an-app-to-convert-decimal-to-binary/2188636):
>
> I can not create a code to convert numbers from decimal to binary, can anyone give me a hand or a suggestion?

---

<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:** [December 22, 2022, 7:46pm UTC](https://community.thunkable.com/t/i-tried-both-codes-but-it-always-gives-me-0-for-example-i-insert-10-which-should-give-me-101-and-it-gives-me-0/2188981/3 "2022-12-22T19:46:53Z")

</div>


