Search code examples
app-inventor

MIT APP Inventor 2 text box property as integer


I needs a text box which only allow integers bigger than "0". My blocks can make it to only accept positive numbers, but I have no idea how to make it an integer.


Solution

  • Please refer to the below. Tried to judge if it's a number first and then "round" it to be integer and then "absolute" it to be positive number.

    enter image description here