From a13a74a0a703c34cfe7e6e0e7708ad574ec1fd57 Mon Sep 17 00:00:00 2001 From: Scott Horowitz Date: Wed, 8 Jan 2025 17:04:28 -0700 Subject: [PATCH] Fixes possibility of extra balanced supplemental ventilation system due to floating point comparison. --- rulesets/resources/301ruleset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rulesets/resources/301ruleset.rb b/rulesets/resources/301ruleset.rb index fe2a63a57..3fe30c78b 100644 --- a/rulesets/resources/301ruleset.rb +++ b/rulesets/resources/301ruleset.rb @@ -2483,7 +2483,7 @@ def self.calc_rated_home_q_fans_by_system(orig_bldg, all_mech_vent_fans) # Check if supplemental balanced ventilation is needed # This should only happen when the home has no mechanical ventilation, because # otherwise the existing ventilation fans would have been increased instead. - if min_q_fan > q_fans.values.sum + if min_q_fan - q_fans.values.sum > 0.1 q_fan_bal_remain = calc_rated_home_qfan(orig_bldg, true, 0.0) end end