Fixed point number class for PHP
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
library/Xi/Decimal
tests
.gitignore
README.md

README.md

xi-decimal

Xi\Decimal\Decimal is a fixed-point number class for PHP.

  • It's immutable. All operations return a new instance.
  • The number of decimals is explicitly specified.
  • It uses BCMath internally.
  • It's designed to be subclassable e.g. to make your own Money class.