0
I have the following question, how to accomplish the sum of a BigDecimal
with a String
.
String a = "8";
BigDecimal b = new BigDecimal(2);
It would look 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
.
It does not work, when giving the value of the variable a to Bigdecimal a2 it gives error
– Weriky Alphazero
@Werikyalphazero What mistake?
– Victor Stafusa
I’m the one who screwed up, buddy. Thank you very much
– Weriky Alphazero