public void GetTwoDecimal(){
double d = 2.34568;
DecimalFormat f = new DecimalFormat("##.00"); // this will helps you to always keeps in two decimal places
...
Type: Posts; User: madushankakurera
public void GetTwoDecimal(){
double d = 2.34568;
DecimalFormat f = new DecimalFormat("##.00"); // this will helps you to always keeps in two decimal places
...