ISIS-821: Improve conversion from double to BigDecimal