lib/openstudio-standards/btap/fileio.rb in openstudio-standards-0.3.1.rc1 vs lib/openstudio-standards/btap/fileio.rb in openstudio-standards-0.3.1.rc2
- old
+ new
@@ -831,9 +831,10 @@
true_value = true_value.to_f.round(5) unless true_value.to_f.zero?
compare_value = compare_value.to_f.round(5) unless compare_value.to_f.zero?
# Move to the next field if no difference was found
next if true_value == compare_value
+ next if true_value.to_f.zero? && compare_value.to_f.zero?
# Check numeric values if numeric
if (compare_value.is_a? Numeric) && (true_value.is_a? Numeric)
diff = true_value.to_f - compare_value.to_f
unless true_value.zero?
\ No newline at end of file