Skip to content

Releases: php-collective/decimal-object

1.3.1

Choose a tag to compare

@dereuromark dereuromark released this 03 Apr 22:30
2b26490

Fixes

Fixed up precision loss for defined smaller scale.

1.3.0

Choose a tag to compare

@dereuromark dereuromark released this 03 Apr 22:01
fce3d88

Improvements

Moved the strict check for "accidental precision loss" to its own boolean flag "strict".
This allows setting a value to a lesser precision by default.

1.2.1

Choose a tag to compare

@dereuromark dereuromark released this 07 Dec 13:57
45892c1

Fixes

Fixed numeric validation for Stringable input.

1.2.0

Choose a tag to compare

@dereuromark dereuromark released this 23 Nov 15:37

Improvements

Any object that implements Stringable can now be converted into Decimal.

Please note: This value object does not expect to be extended directly or serialized in a non-JSON way.
If you did, please make sure to manually upgrade for it to be safe.

Full Changelog: 1.1.0...1.2.0

1.1.0

Choose a tag to compare

@dereuromark dereuromark released this 22 Nov 13:39

Changes

Cleanup of deprecated and dead code.

Full Changelog: 1.0.0...1.1.0

1.0.0

Choose a tag to compare

@dereuromark dereuromark released this 10 Oct 12:51
b075a65

Initial Release

This aims to provide similar API and easy upgrade path from spryker/decimal-object.

It is now PHP 8.1+, however.

Main advantages and features now:

  • Strictly typed were feasible
  • Stringable interface added for easier and cleaner "as string" usage
  • Supports any Stringable object as input, as well