Skip to content

fix: high-precision fixed-point division (issue #346)#375

Open
mofejo1 wants to merge 1 commit into
StellarFlow-Network:mainfrom
mofejo1:feat/issue-346-bit-math
Open

fix: high-precision fixed-point division (issue #346)#375
mofejo1 wants to merge 1 commit into
StellarFlow-Network:mainfrom
mofejo1:feat/issue-346-bit-math

Conversation

@mofejo1
Copy link
Copy Markdown

@mofejo1 mofejo1 commented May 31, 2026

Closes #346

Summary:

  • Add 7dp→7dp division helper using 10^9 internal scaling and rounded downscale to 10^7.
  • Round when normalizing to 7 decimals to avoid truncation for low-value fractions.
  • Add focused unit tests for low-value/rounding behavior.

Notes:

  • Kept changes minimal and localized to math/helpers + small test compatibility fixes.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@mofejo1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

🧬 Bit-Math | High-Precision Fixed-Point Division Workarounds

1 participant