- #17803 Add mutative api for Int.BigInt()
- #18228 Fix panic when calling
BigInt()
on an uninitializedUint
. - #18214 Ensure that modifying the argument to
NewUIntFromBigInt
doesn't mutate the returned value. - #18211 RelativePow now returns 1 when 0^0, before it was returning the scale factor.
- #17725 Fix state break in ApproxRoot. This has been present since math/v1.0.1. It changed the rounding behavior at precision end in an intermediary division from banker's to truncation. The truncation occurs from binary right shift in the case of square roots. The change is now reverted back to banker's rounding universally for any root.
math/v1.1.2 - 2023-08-21
math/v1.1.1 - 2023-08-21
- #17480 Fix panic when calling
.Size()
on a nilmath.Int
value.
math/v1.1.0 - 2023-08-19
- #17427 Implement LegacyDec.MulRoundUp that rounds up at precision end.
- #17109 Add
.ToLegacyDec()
method onmath.Int
type for converting tomath.LegacyDec
. - #16263 Improved
math/Int.Size
by computing the decimal digits count instead of firstly invoking .Marshal() then checking the length
- #17352 Ensure that modifying the argument to
NewIntFromBigInt
doesn't mutate the returned value. - #16266 Fix legacy dec power mut zero exponent precision.
math/v1.0.1 - 2023-05-15
- #15768 Removed the second call to the
init
method for the global variablegrand
. - #16141 Speedup
LegacyDec.ApproxRoot
andLegacyDec.ApproxSqrt
.
- #15714
FormatInt
returns an error on empty string.
math/v1.0.0 - 2023-03-23
- #15506 Dec marshal shouldn't have side effects
math/v1.0.0-rc.0 - 2023-03-13
- #15043 add rand funcs to math
- #14922 check for negative precision
- #15215 fix
FormatDec
test
math/v1.0.0-beta.6 - 2023-02-06
- #14760 add collections key encoders and value encoders for common types.
- #14166 math: add generics versions of Max, Min to cater to all numeric types
- #13381 add uint
IsNil
method
- #14010 math: optimize and test FormatInt + simplify LegacyNewDecFromStr
- #12794 math: precompute & use square of precisionReuse instead of 2 repeated computations
- #14691 do not flatten events attributes by event types
- #14252 math: add LegacyNewDecFromStr fuzzers + remove unnecessary error wrapping
- #14576 Added test cases for precisionMultiplier
math/v1.0.0-beta.3 - 2022-07-20
- #11996 math: fix Uint.Unmarshal's lack of negative value checking