Which method will be better when multiply 100 with BigDecimal?
问题 Here I have a question when using Java BigDecimal. Which way will be better when I want to multiply 100 for a object of BigDecimal. multiply 10 twice; movePointRight(2); scaleByPowerOfTen(2); any other way? please show me if there is. BTW, it will be used for commercial calculation, so I'm considering the precision rather than the speed. 回答1: Option 3 is the fastest. Options 1 and 2 are roughly the same (option one being to multiply by ten twice). Multiplying by 100 instead gets up near the