enables handling of float values

Although I am not completely sure whether this is a stable solution, replacing the d with an f in the regular expression seems to help handle decimal values.