Made API friendly to BigDecimal precision

Changes introduced by the user 'valeriusjames'.