I am looking for the best way to convert a Number to a BigDecimal.
Is this good enough?
Number number; BigDecimal big = new BigDecimal(number.toStrin
The best way is
BigDecimal.valueOf(myDouble);
It's the same internally, but it's an overloaded function that works also for longs and it's optimized for frequently used longs value. So it's more standard, simple and easy to remember.
long
Source