how do you set the NumberField to accept only Integers?

how do you set the NumberField to accept only Integers?