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
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.
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
Thunkable X Basic Programming Course
Block Reference
Component Reference
Bug tracker
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.
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/
Best regards, Alex
ACtech demo project
Thunkable X Basic Programming Course
Block Reference
Component Reference
Bug tracker
Thank you so much! <3