get_rate must always return a Decimal or int as value

issue3311
review987002