1. Implemented getC31 Helper for Non-Sealed Systems
- Issue: The new logic for determining the QLMV lower limit (based on Appendix C1) was initially only applied to Sealed Systems.
- Fix: Updated the
getC31helper function to accept anisSealedboolean parameter. Updated therenderBothSystemsfunction to callgetC31(false)and apply the new calculation logic to the “Non-Sealed” column for “Other Applications”.
2. All SEALED & NON-SEALED OA (Other Applications) results match Chemours’ Excel exactly.
3. Identified & Fixed A Floating-Point Precision Bug
- Issue: In specific small room dimensions (e.g., 2x2x2), the QLAV value was calculating as
1.14instead of1.13. This was due to standard JavaScript floating-point math (e.g.,1.12 + 0.01resulting in1.1300000000000001), causingMath.ceilto round up incorrectly. - Fix: Replaced the ceiling calculation with an integer-based rounding approach:
Before Math.ceil((val + 0.01) * 100) / 100 //After (Math.round(val * 100) + 1) / 100