Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/split/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module Export

def round(number, precision = 2)
BigDecimal.new(number.to_s).round(precision).to_f
rescue ArgumentError
0.0
end

# this method calculates the z_score for an alternative including all goals. This behavior should
Expand Down