php - Arbitrary precision number formatting / money_format? -


Is there a benchmark-specific option available that can take the string instead of float as a parameter?

It is not that I am planning to calculate lakhs of monetary units, but after being disturbed, it is better to have such a function after seasonal arithmetic after handling floats without disqualification , Which does not spill random numbers after approximately 15 digits, even if the user decides to give this nonsense data. Or, hey, maybe someone wants to buy gum rods in two ?

I hesitate to use regular expression because I was hoping to use the localization of money format.

Edit - found a practical solution;

Try the class


Comments