Coder-Spirit / php-bignumbers

A robust library to handle immutable big numbers inside PHP applications
MIT License
131 stars 29 forks source link

Add formatting method (enhancement) #65

Open bdteo opened 6 years ago

bdteo commented 6 years ago

The default string representation that the Decimal class gives is like this:

(string)Litipk\BigNumbers\Decimal::fromString('11111111111111111.55555555555555')
"11111111111111111.55555555555555"

It would be nice if there is a method to format strings like these to 11,111,111,111,111,111.55555555555555