mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-24 05:10:50 +01:00
5 KiB
5 KiB
Decimal v1.4.0
BREAKING
- Drop support for Go version older than 1.10 #361
FEATURES
- Add implementation of natural logarithm #339 #357
- Add improved implementation of power operation #358
- Add Compare method which forwards calls to Cmp #346
- Add NewFromBigRat constructor #288
- Add NewFromUint64 constructor #352
ENHANCEMENTS
- Migrate to Github Actions #245 #340
- Fix examples for RoundDown, RoundFloor, RoundUp, and RoundCeil #285 #328 #341
- Use Godoc standard to mark deprecated Equals and StringScaled methods #342
- Removed unnecessary min function for RescalePair method #265
- Avoid reallocation of initial slice in MarshalBinary (GobEncode) #355
- Optimize NumDigits method #301 #356
- Optimize BigInt method #359
- Support scanning uint64 #131 #364
- Add docs section with alternative libraries #363
BUGFIXES
- Fix incorrect calculation of decimal modulo #258 #317
- Allocate new(big.Int) in Copy method to deeply clone it #278
- Fix overflow edge case in QuoRem method #322
Decimal v1.3.1
ENHANCEMENTS
- Reduce memory allocation in case of initialization from big.Int #252
BUGFIXES
- Fix binary marshalling of decimal zero value #253
Decimal v1.3.0
FEATURES
- Add NewFromFormattedString initializer #184
- Add NewNullDecimal initializer #234
- Add implementation of natural exponent function (Taylor, Hull-Abraham) #229
- Add RoundUp, RoundDown, RoundCeil, RoundFloor methods #196 #202 #220
- Add XML support for NullDecimal #192
- Add IsInteger method #179
- Add Copy helper method #123
- Add InexactFloat64 helper method #205
- Add CoefficientInt64 helper method #244
ENHANCEMENTS
- Performance optimization of NewFromString init method #198
- Performance optimization of Abs and Round methods #240
- Additional tests (CI) for ppc64le architecture #188
BUGFIXES
- Fix rounding in FormatFloat fallback path (roundShortest method, fix taken from Go main repository) #161
- Add slice range checks to UnmarshalBinary method #232
Decimal v1.2.0
BREAKING
- Drop support for Go version older than 1.7 #172
FEATURES
- Add NewFromInt and NewFromInt32 initializers #72
- Add support for Go modules #157
- Add BigInt, BigFloat helper methods #171
ENHANCEMENTS
- Memory usage optimization #160
- Updated travis CI golang versions #156
- Update documentation #173
- Improve code quality #174