# How to solve press the decimal point only one point

**URL:** <https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [November 30, 2019, 5:27pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976 "2019-11-30T17:27:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahatsuki.zaza.31ppi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ahatsuki.zaza.31ppi/32/54403_2.png) [@ahatsuki.zaza.31ppi](https://community.thunkable.com/u/ahatsuki.zaza.31ppi)\
**Post date:** [November 30, 2019, 5:27pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/1 "2019-11-30T17:27:08Z")

</div>

I have homework to create calculator but I have problem… when I press button “.” It’s have a lot of decimal point… I need only one decimal point. How to solve it??? Please help me… ;w; Thank you. //Sorry If I type wrong sentence or wrong grammar because I’m not strong about this… #FromThailand

 ![Screenshot_2019-12-01-00-09-07-07_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/4/4470ab9f5018d04d21346a5d91f99698b77b5d7f.png)

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [November 30, 2019, 5:38pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/2 "2019-11-30T17:38:14Z")

</div>

What you need then is to implement logic that limit the action of clicking the “.” key.  
Simply stated, if the value currently displayed does NOT contain a “.”, then the button can add one. If there is already a decimal point, the logic associated with the button is ignored.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 30, 2019, 6:48pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/3 "2019-11-30T18:48:19Z")

</div>

If you pressed a button once, and on the screen the result looks like you pressed a button several times, then this is an error in your blocks.

Best regards, Alex  
[ACtech demo project](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)  
[Thunkable X Basic Programming Course](http://droidscript.ru/main/title_ds15.php)  
[Block Reference](http://droidscript.ru/main/statyi/thunkableios_blockhelper.php)  
[Component Reference](http://droidscript.ru/main/statyi/thunkableios_objects.php)  
[Bug tracker](https://x.thunkable.com/projects/5dbd5243a77acad1b26f851f/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![ahatsuki.zaza.31ppi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ahatsuki.zaza.31ppi/32/54403_2.png) [@ahatsuki.zaza.31ppi](https://community.thunkable.com/u/ahatsuki.zaza.31ppi)\
**Post date:** [November 30, 2019, 7:08pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/4 "2019-11-30T19:08:49Z")

</div>

![Screenshot_2019-12-01-01-58-14-60_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/688e429ba2b97ac36c23424a9c1a0196e54d6276.png)  
Thank you for advice sir.  
But sorry sir, My block isn’t error. I mean First time I press decimal point and it show. And I press again decimal point not show sir.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 30, 2019, 7:22pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/5 "2019-11-30T19:22:08Z")

</div>

A simple example. I press the button and the dot is shown only once. If I press the button 5 times, 1 points will appear.

[https://x.thunkable.com/projects/5de2beb8adffd16e940bd242/project/properties/designer/](https://x.thunkable.com/projects/5de2beb8adffd16e940bd242/project/properties/designer/)

Best regards, Alex  
[ACtech demo project](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)  
[Thunkable X Basic Programming Course](http://droidscript.ru/main/title_ds15.php)  
[Block Reference](http://droidscript.ru/main/statyi/thunkableios_blockhelper.php)  
[Component Reference](http://droidscript.ru/main/statyi/thunkableios_objects.php)  
[Bug tracker](https://x.thunkable.com/projects/5dbd5243a77acad1b26f851f/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![ahatsuki.zaza.31ppi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ahatsuki.zaza.31ppi/32/54403_2.png) [@ahatsuki.zaza.31ppi](https://community.thunkable.com/u/ahatsuki.zaza.31ppi)\
**Post date:** [November 30, 2019, 7:31pm UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/6 "2019-11-30T19:31:25Z")

</div>

Thank you so much! \<3

---

<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, 11:46am UTC](https://community.thunkable.com/t/how-to-solve-press-the-decimal-point-only-one-point/344976/7 "2024-11-08T11:46:32Z")

</div>


