if the parameter is a double then any number is acceptable. Until now only for doubles was checked