|
|
|
|
|
by wolfgke
2877 days ago
|
|
> No, but the right way should at least be easier than the wrong way. Let us compare: > bigDecimal.doubleValue() + bigDecimal2.doubleValue() vs. > bdResult = bd1.add( bd2 ) The first code is longer (two methods calls, which each do a conversion, one addition, and probably omitted some conversion back to BigDecimal). The second one is just one simple method call. I would strongly argue that the second, right way is much easier than the wrong way. |
|