Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync upstream #3

Closed
wants to merge 75 commits into from
Closed

Sync upstream #3

wants to merge 75 commits into from

Conversation

jeffatgametime
Copy link

@jeffatgametime jeffatgametime commented Jun 11, 2024

no comment

lantw44 and others added 30 commits February 19, 2019 17:00
Since trailing 0 digits after the decimal point are trimmed, intString
becomes an empty string when there is no digit before the decimal point
and all digits after the decimal point is 0, causing big.Int SetString
to fail because there is no string to parse.

Fix shopspring#134.
call Coefficient on uninitialized Decimal will panic
…pspring#160)

* Remove unnecessary decimal rescaling

* Move benchmarks to separate file, add new benchmark tests
* remove 15 interval RoundCash

* update function doc

* Remove comments and benchmark referring interval 15

Co-authored-by: Mateusz Woś <wos.mateusz16@gmail.com>
* revert original remove insignificant change (PR 46), and add the logic back as a function
* Drop support for Go versions older than 1.7
* Update README.md
* Add new helper methods: BigInt, BigFloat
* Add few tests cases showing loss of precision after casting
* Improve go report cards score
…g#173)

* Update documentation, clean up package level documentation
* fix: fix rounding in FormatFloat fallback path
…pring#184)

* Implement new initialization function - NewFromFormattedString
* Redefine docstring
* Implement RoundUp and RoundDown methods
* optimize NewFromString a bit

* add benchmark for large number

Co-authored-by: Nicholas Nordeen <nnordeen@fanatics.com>
mwoss and others added 23 commits December 29, 2023 12:54
…#340)

* Update Github Actions libraries to the latest working version
* Update badge to show status from master branch only
Co-authored-by: Chris Belsole <chris.belsole@homelight.com>
Given the interface definition

	type Ordered[T any] interface {
		Compare(T) int
	}

And the type constraint T Ordered[T], make decimal.Decimal satisfy this
constraint, so that generic code written against T Ordered[T] can work
with decimal values as smoothly as it works with time.Time values today.

Fixes: shopspring#345
* Adjust Ln method to prevent infinity iteration loops
* Add test case for infinity loop
* Adjust Pow implementation
* Add PowWithPrecision method
* Add PowInt32 method
* Add PowBigInt method
* Drop support for Go versions older than 1.10
* Remove 1.18 from test suite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.