I think is better to check if the `value` can be an integer or float using a regexp