Repository navigation
Update module github.com/shopspring/decimal to v1.5.0 - autoclosed - #80
Closed
renovate-update-app[bot] wants to merge 1 commit into
Closed
renovate-update-app[bot] wants to merge 1 commit into
renovate-update-app[bot] wants to merge 1 commit into
Conversation
renovate-update-app
Bot
deleted the
renovate/github.com-shopspring-decimal-1.x
branch
October 16, 2026 12:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.4.0→v1.5.0Release Notes
shopspring/decimal (github.com/shopspring/decimal)
v1.5.0Compare Source
BEHAVIOR CHANGES
NewFromStringandUnmarshalBinary, and so JSON, text, SQL, gob and Spanner decoding, reject exponents larger than the newMaxDecodeExponentsetting (default 10,000). Such input could hang the process or use gigabytes of memory. RaiseMaxDecodeExponentif you need larger exponents #440Pow,PowWithPrecision,PowInt32andPowBigIntround correctly. Results for fractional exponents havePowPrecisionNegativeExponent(16) decimal places, and negative powers that used to return 0 keep 16 significant digits, so10^-18is0.000000000000000001. Results too large to represent return an error, or 0 fromPow, instead of hanging or panicking #439RoundUp,RoundDown,RoundCeilandRoundFlooralways return exponent-places, likeRound. Values don't change, butExponent(),Coefficient()andString()withTrimTrailingZeros = falsecan #426 #441Truncatesupports negative precision:5432truncated to-2is5400. Before, it returned5432unchanged #426Shiftpanics when the exponent overflows an int32, instead of wrapping around #437NewFromStringrejects a sign right after a leading decimal point, such as".-5"#447FEATURES
TrimTrailingZerosandUseScientificNotationsettings for string output #389 #416EncodeSpannerandDecodeSpannerforDecimalandNullDecimal#395ENHANCEMENTS
UnmarshalJSON,ScanandNewFromString#403ExpHullAbrhamraises its partial sum to a power by squaring. Large inputs that took minutes now take seconds #450NewFromFloatreturns the shortest decimal that converts back to the same float, and how to convert large whole numbers exactly #442decimal.gointodecimal.go,math.goandencoding.go#452BUGFIXES
Float64hanging on decimals with huge exponents #438ExpHullAbrhamreturning10^expinstead of 1 for tiny inputs #433ExpTaylor#414NumDigitsfor some exact powers of ten #425omitzerostruct tag forDecimalfields in nested structs #415RoundCashgiving wrong results with a lowDivisionPrecision#443NullDecimalis no longerValidafter a failedScan,UnmarshalJSONorDecodeSpanner#443Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.