lib/proforma/compiling/counter.rb in proforma-1.0.0.pre.alpha vs lib/proforma/compiling/counter.rb in proforma-1.0.0
- old
+ new
@@ -26,9 +26,11 @@
self
end
def ave
+ return BigDecimal(0) if count.zero?
+
sum / count
end
end
end
end