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

fix: Handle bigints properly in more cases #3345

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

gwhitney
Copy link
Collaborator

@gwhitney gwhitney commented Jan 3, 2025

  • Allow a bigint to appear in a max/min of nonhomogeneous arguments
  • If randomInt is called with a bigint or a pair of bigints, return a bigint.
  • Preserve uniformity of results if randomInt is called with a very large range.
  • Extend log, log2, and log10 to bigints.
  • Allow mixed Fraction and BigNumber in smaller and larger.
  • Add tests for all of the above issues.
  • Bonus: fix one JSDoc comment issue. If every PR fixes one, we will soon get through the 150+ of them.

Resolves #3344.

  * Allow a bigint to appear in a max/min of nonhomogeneous arguments
  * If randomInt is called with a bigint or a pair of bigints, return
    a bigint.
  * Preserve uniformity of results if randomInt is called with a very large
    range.
  * Extend log, log2, and log10 to bigints
  * Add tests for all of the above issues.
  * Bonus: fix one JSDoc comment issue. If every PR fixes one, we will soon
    get through the 150+
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.

instances of lack of support for bigints
1 participant