Java
Source Code
Home > Source Code >Java > Mathematics
 
  Setting The Decimal Place Of A Big Decimal Value  
 
 
  1. int decimalPlaces = 2;

  2.    

  3.     // Truncates the big decimal value.

  4.     bd = bd.setScale(decimalPlaces,BigDecimal.ROUND_DOWN);

  5.     String string = bd.toString();
 
 
Date entered : 23rd Feb 2007
Rating : No Rating
Accessed : 589
Submitted by : javabill
 
0 comments have been posted for this Source Code.View Comments Here
 
Home > Source Code >Java > Mathematics
Copyright Visualbuilder.com 1999-2006
 
 
 

Warning: Unknown(): write failed: Disk quota exceeded (122) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0