for checking double values, also check if it can fit into int

if user types 18 instead of 18.0, that should be ok