Validate integer and decimal values