how can my app know if a user included a 'negative' number in a text box?

I tried using
text1 < 0
but, <0 looks for a decimal.....

Any ideas?