[decimojo] Improve the division operation for BigDecimal and others
#71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several important updates to the
decimojoproject, including documentation enhancements, dependency adjustments, and improvements to arithmetic operations. The most significant changes are summarized below:Documentation Enhancements:
README.md: Added a link to the changelog for better navigation.docs/changelog.md: Updated to include a link to the unreleased changes.docs/changelog_unreleased.md: Created a new file to track unreleased changes, including new features and bug fixes.Dependency Adjustments:
mojoproject.toml: Changed the version constraint for themaxdependency from>=25.2to==25.2to ensure compatibility.Arithmetic Operations Improvements:
src/decimojo/bigdecimal/arithmetics.mojo: Enhanced thetrue_dividefunction by optimizing precision handling and improving the rounding mechanism. [1] [2] [3]src/decimojo/bigdecimal/bigdecimal.mojo: Updated theto_stringmethod to support scientific notation and added a newtrue_dividemethod for precision control. [1] [2] [3]Bug Fixes:
src/decimojo/biguint/arithmetics.mojo: Fixed a bug inscale_down_by_power_of_10function to handle zero shifts correctly.src/decimojo/biguint/biguint.mojo: Improved theith_digitmethod with additional error handling and added a newnumber_of_digitsmethod. [1] [2]These changes collectively enhance the functionality, reliability, and documentation of the
decimojolibrary.