Release Notes - v4.3.8 🚀
April 7, 2026
This release includes significant improvements and refactorings to the significant figures calculation algorithm for POQTROL, ensuring consistency and numerical accuracy.
📊 POQTROL
Refactor
- Significant Figures:
- Rewrote rounding logic for
SignificantFigures, simplifying the class by replacing manual digit parsing with robustMath.round-based calculation. - Updated the algorithm to use scientific rounding of significant figures instead of rounding by decimal places.
- Aligned behavior with Excel's
ROUNDfunction to ensure consistency across different decimal scales and negative values. - Implemented
toPrecision(15)in intermediate steps to mitigate standard JavaScript floating-point precision issues. - The
value_formattedproperty now usestoFixedfor positive decimal places, improving reliability of string representation. - Added a comprehensive test suite in
significant-figures.spec.tscovering edge cases, negative rounding factors, and precision verification.
- Rewrote rounding logic for
Bug Fixes
- Significant Figures Calculation: Adjusted calculation to prevent incorrect decimal formatting when rounding crosses powers of 10.