ircmaxell/php-math-parser — pull request #7 by aozisik (2014-07-05 11:08:49+00:00)
Title: 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.