I have to convert a String
(read from excel cell) into BigDecimal
, but I have to consider :
- the
BigDecimal
number will have two decimal digits, so I must form it in that way - the original string could use comma (",") as decimal separator (and this is my greater problem because if I write
BigDecimal num = new BigDecimal(rowCell);
and rowCell has comma as decimal separator I will take an exception...)
Could you help me? Thank you in advance