[core] fix bug on BigDecimal conversion, adding the RoundingMode