added the possibility to use negative numbers (both floats and integers)