Changed input syntax to request integer, not number
Handles numbers that are just below the next boundary