You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArgumentError: can't omit precision for a Float.
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/money-open-exchange-rates-1.0.1/lib/money/bank/open_exchange_rates_bank.rb:329:in `BigDecimal'
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/money-open-exchange-rates-1.0.1/lib/money/bank/open_exchange_rates_bank.rb:329:in `calc_pair_rate_using_base'
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/money-open-exchange-rates-1.0.1/lib/money/bank/open_exchange_rates_bank.rb:171:in `get_rate'
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/money-6.9.0/lib/money/bank/variable_exchange.rb:110:in `exchange_with'
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/money-6.9.0/lib/money/money.rb:436:in `exchange_to'
from (irb):3
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/railties-3.2.22/lib/rails/commands/console.rb:47:in `start'
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/railties-3.2.22/lib/rails/commands/console.rb:8:in `start'
from /Users/ikovalenko/.rvm/gems/ruby-2.1.8/gems/railties-3.2.22/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
The text was updated successfully, but these errors were encountered:
ilyacoding
changed the title
ArgumentError: can't omit precision for a Float. [1.0.1]
[1.0.1] ArgumentError: can't omit precision for a Float
Mar 26, 2018
There is a error while trying to convert money.
Example:
Money.new(500, "BYN").exchange_to("EUR")
Error:
The text was updated successfully, but these errors were encountered: