The pattern should be lifted as a `private[this] val` in the object, to avoid recompilation on every invocation of `parseFloat`.