How to make prompt filter for numbers only

Hi there.
Im building a system where the user might insert coordinates. (Only numbers). So Far, I used the prompt local user text as input for It. But as its free text I am considering another options to avoid invalid inputs.
Is there a way to take only numbers?
Thanks in advance

You could use a parse int/parse float chip to filter out responses with letters

Hi, thanks for your reply.

But I would like to allow
Only numbers as valid inputs …
Otherwise the person may enter something like:

,.:1a4-+425

as input and its gonna be annoying…

Thanks

Like @Gamerr_VR said, you can use a “Parse Int” chip.

What this chip does is take any string input and attempts to turn it into a valid integer output. If it fails, the “parse success” port will output false.

If you want more granular number since parse int only does integer numbers. -1, 0, 1, 2, 3… and so on instead, you can use “Parse Float”, this will attempt to take any input string and convert it into a Float value which is basically any “rational number”.

Here’s a chart showing all the classification of numbers.

Hope this helps better you’re understanding!