Skip to content

[bigint] Implement BigInt type and basic arithmetic operations#48

Merged
forfudan merged 3 commits intomainfrom
bigint
Mar 23, 2025
Merged

[bigint] Implement BigInt type and basic arithmetic operations#48
forfudan merged 3 commits intomainfrom
bigint

Conversation

@forfudan
Copy link
Copy Markdown
Owner

This pull request introduces new modules for BigInt arithmetic operations and string manipulation in the DeciMojo library and includes significant updates to the README.md file. The most important changes include enhancements to the documentation, implementation of new arithmetic functions for BigInt, and string parsing utilities.

Documentation Updates:

  • README.md: Updated the description of DeciMojo to reflect its comprehensive nature and added information about the development of BigInt and BigDecimal types. Clarified the nomenclature section and updated the citation title.

New Modules for BigInt Arithmetic:

  • src/decimojo/bigint/__init__.mojo: Added a new sub-package for big integer arithmetic with appropriate licensing information.
  • src/decimojo/bigint/arithmetics.mojo: Implemented basic arithmetic functions (add, subtract, negative, absolute) for the BigInt type.
  • src/decimojo/bigint/comparison.mojo: Implemented comparison functions for BigInt objects, including compare_absolute.

String Manipulation Utilities:

  • src/decimojo/str.mojo: Added functions for parsing strings of numbers into normalized parts, handling various characters and formats.

Additional To-Do Items:

  • docs/todo.md: Added a new task to implement methods for augmented arithmetic assignments to improve memory efficiency and performance.

@forfudan forfudan merged commit 54ad5ec into main Mar 23, 2025
1 check passed
@forfudan forfudan deleted the bigint branch March 23, 2025 15:22
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