Skip to content

Commit

Permalink
Fix rounding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Calyhre committed May 17, 2017
1 parent 17d30ab commit 2bbfb86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/eshop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def self.list(country: 'US', ids: [], limit: 50)
country: country,
status: price[:sales_status],
currency: price.dig(:regular_price, :currency),
value_in_cents: (price.dig(:regular_price, :raw_value).to_f * 100).to_i,
value_in_cents: (price.dig(:regular_price, :raw_value).to_f * 100).round,
}
end.compact
end
Expand Down

0 comments on commit 2bbfb86

Please sign in to comment.