Can I make it so no decimals are allowed?

I'm making a number guessing game and I want it so numbers with decimals aren't allowed to be typed, but I can't figure out how as I'm new to this (it's for school, I'm trying to get a good grade y'know).
I also don't know how forums work so hopefully my code will show below:


Thanks for helping if you do!

You can force the GuessInput.Text to a whole number using

set GuessInput.Text to round(GuessInput.Text)

Look in the math blocks.