better validation error message formatting : when number is integer do
not display it float style