 |
| Home > Source Code >Java > Mathematics
|
| |
Setting The Decimal Place Of A Big Decimal Value |
|
|
| |
| |
| |
int decimalPlaces = 2;
// Truncates the big decimal value.
bd = bd.setScale(decimalPlaces,BigDecimal.ROUND_DOWN);
String string = bd.toString();
|
|
| |
|
|
|
| Date entered : 23rd Feb 2007 |
| Rating : No Rating |
| Accessed : 589 |
| Submitted by : javabill |
|
|