Updated exponential match in formatFunction
Updated version