Converting inputs into int types

Woops so it is, have you tried an if statement before arising the string. It might be that some conditions return a blank string without a number

Ie if(input.value()!="")