How to check input data type

DOS autori shared this question 9 months ago
Answered

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):https://ggbm.at/AcZkXVvx

Comments (1)

photo
1

Please email support@geogebra.org

Comments have been locked on this page!

© 2018 International GeoGebra Institute