You might be giving the input as a string (App inventor automatically converts numbers in strings to number) see here -
Check for spaces and or charcaters
You might be giving the input as a string (App inventor automatically converts numbers in strings to number) see here -
Check for spaces and or charcaters