Skip to content

[integer] Implement BigUInt, basic methods and arithmetic functions#54

Merged
forfudan merged 2 commits intomainfrom
int
Mar 24, 2025
Merged

[integer] Implement BigUInt, basic methods and arithmetic functions#54
forfudan merged 2 commits intomainfrom
int

Conversation

@forfudan
Copy link
Copy Markdown
Owner

This pull request includes several notable updates to the DeciMojo library, focusing on expanding its functionality and improving its documentation. Key changes involve the addition of a new type BigUInt, updated documentation, and new tests for the BigUInt type.

Documentation Updates:

  • README.md: Updated to reflect the inclusion of BigInt and the ongoing development of BigDecimal. Added a quick start guide for BigInt.

New Features:

  • src/decimojo/__init__.mojo: Added imports for BigInt and BigUInt types.
  • benches/biguint/bench.mojo: Added a new benchmark for BigUInt truncate divide.
  • mojoproject.toml: Added a new benchmark command for BigUInt.

New Modules:

  • src/decimojo/biguint/__init__.mojo: Created a new sub-package for big unsigned integer arithmetic.
  • src/decimojo/biguint/comparison.mojo: Implemented comparison functions for BigUInt objects.

Testing:

  • tests/biguint/test_biguint_arithmetics.mojo: Added comprehensive tests for BigUInt arithmetic operations including addition, subtraction, and multiplication.

@forfudan forfudan merged commit 75d2b39 into main Mar 24, 2025
1 check passed
@forfudan forfudan deleted the int branch March 24, 2025 23:07
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.

1 participant