Hi All,
I used BigDecimal instead of float to handle floating number between
db <-> object or calculation. However, there is still a problem for me to display the floating number value to user. I got a clumsy method to display a floating number:
1. use BigDecimal's toString() method.
2. spilt the string into two parts (xxxx.yyy).
3. format two parts (x,xxx.yyy).
Did anyone has another idea to solve that problem?
Thank in advance,