Skip to content

Conversation

@forfudan
Copy link
Owner

This pull request includes several important updates to the decimojo project, including documentation enhancements, dependency adjustments, and improvements to arithmetic operations. The most significant changes are summarized below:

Documentation Enhancements:

Dependency Adjustments:

  • mojoproject.toml: Changed the version constraint for the max dependency from >=25.2 to ==25.2 to ensure compatibility.

Arithmetic Operations Improvements:

Bug Fixes:

These changes collectively enhance the functionality, reliability, and documentation of the decimojo library.

@forfudan forfudan merged commit 8d2b49c into main Mar 31, 2025
1 check passed
@forfudan forfudan deleted the work branch March 31, 2025 13:12
forfudan added a commit that referenced this pull request Mar 31, 2025
…71)

This pull request includes several important updates to the `decimojo`
project, including documentation enhancements, dependency adjustments,
and improvements to arithmetic operations. The most significant changes
are summarized below:

*
[`README.md`](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L5-R5):
Added a link to the changelog for better navigation.
*
[`docs/changelog.md`](diffhunk://#diff-77f023b99d3d58008351d3e82fc06e6d06ba1bc2da9e41be6329b7fa4f419f05L1-R3):
Updated to include a link to the unreleased changes.
*
[`docs/changelog_unreleased.md`](diffhunk://#diff-fbe2a82b558eb11e93dded341697980acc701ce3004ca9933632af801e98f8cbR1-R11):
Created a new file to track unreleased changes, including new features
and bug fixes.

*
[`mojoproject.toml`](diffhunk://#diff-1b0ef62120bccf4c05a76e60e13fe686f33eb92d5897b3f05e0c3f8d737fc5c0L13-R13):
Changed the version constraint for the `max` dependency from `>=25.2` to
`==25.2` to ensure compatibility.

*
[`src/decimojo/bigdecimal/arithmetics.mojo`](diffhunk://#diff-f79534f4e7fdd891932ce9d015c50bd3c8a72c4a1689f0cb55524490ffc0458dR191-R216):
Enhanced the `true_divide` function by optimizing precision handling and
improving the rounding mechanism.
[[1]](diffhunk://#diff-f79534f4e7fdd891932ce9d015c50bd3c8a72c4a1689f0cb55524490ffc0458dR191-R216)
[[2]](diffhunk://#diff-f79534f4e7fdd891932ce9d015c50bd3c8a72c4a1689f0cb55524490ffc0458dL224-R307)
[[3]](diffhunk://#diff-f79534f4e7fdd891932ce9d015c50bd3c8a72c4a1689f0cb55524490ffc0458dL315-R329)
*
[`src/decimojo/bigdecimal/bigdecimal.mojo`](diffhunk://#diff-be2f9b2702fd15952546e17fe94a64c22902a0e4678bfd9cb925269647923db4L301-R362):
Updated the `to_string` method to support scientific notation and added
a new `true_divide` method for precision control.
[[1]](diffhunk://#diff-be2f9b2702fd15952546e17fe94a64c22902a0e4678bfd9cb925269647923db4L301-R362)
[[2]](diffhunk://#diff-be2f9b2702fd15952546e17fe94a64c22902a0e4678bfd9cb925269647923db4R389)
[[3]](diffhunk://#diff-be2f9b2702fd15952546e17fe94a64c22902a0e4678bfd9cb925269647923db4R462-R489)

*
[`src/decimojo/biguint/arithmetics.mojo`](diffhunk://#diff-95a5c66e5957fff2a2a8a2710ffb11a4ad7d0bddaf3bc11d075d62ddaa8b915cL1017-R1018):
Fixed a bug in `scale_down_by_power_of_10` function to handle zero
shifts correctly.
*
[`src/decimojo/biguint/biguint.mojo`](diffhunk://#diff-f9432b9b2671643af91201f9e3f011551a3d3b0e6d7b256d0d4569f5ae59848aL855-R867):
Improved the `ith_digit` method with additional error handling and added
a new `number_of_digits` method.
[[1]](diffhunk://#diff-f9432b9b2671643af91201f9e3f011551a3d3b0e6d7b256d0d4569f5ae59848aL855-R867)
[[2]](diffhunk://#diff-f9432b9b2671643af91201f9e3f011551a3d3b0e6d7b256d0d4569f5ae59848aR883-R900)

These changes collectively enhance the functionality, reliability, and
documentation of the `decimojo` library.
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.

2 participants