I have the following question, how can I sum a BigDecimal
with a String
.
String a = "8";
BigDecimal b = new BigDecimal(2);
Would it be something like this? b.add(a);
Note: I need the logic to be this, I just need to know how to assign the value of a BigDecimal
of a variable String
.