Skip to content

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 robust Math.round-based calculation.
    • Updated the algorithm to use scientific rounding of significant figures instead of rounding by decimal places.
    • Aligned behavior with Excel's ROUND function 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_formatted property now uses toFixed for positive decimal places, improving reliability of string representation.
    • Added a comprehensive test suite in significant-figures.spec.ts covering edge cases, negative rounding factors, and precision verification.

Bug Fixes ​

  • Significant Figures Calculation: Adjusted calculation to prevent incorrect decimal formatting when rounding crosses powers of 10.

⬅️ Previous Version | Next Version ➡️ | Back to zymDev Core

Built with ❤️ by zymDev Team.