How to check input data type

DOS autori shared this question 3 years ago

I was wondering if there is a possibility to override error messages on wrong input. I've created a check on input variable. If there is a text entered, nothing happens and numeric variable stays undefined and if there is a number entered, it stores it in numeric variable. But the error message shows when "space", ",", ".", "+" or "-" entered (maybe some other also).

Does anyone have suggestion how to override this? The goal is to ignore every non numeric input without popup error message and continue doing tasks if entry is number or numeric expression (2+3, -4...). I would like to avoid converting text into number if there is another way.

Example (with described errors):

Comments (1)


Please email

Comments have been locked on this page!

© 2021 International GeoGebra Institute