public class Test050 {
public static void main(String[] args) {
Double age = 1.0;
Double temp = (Double) (age / 3);
System.out.println(temp);
BigDecimal b = new BigDecimal(temp);
double f1 = b.setScale(2,BigDecimal.ROUND_DOWN).doubleValue();
System.out.println(f1);
}
}
public static void main(String[] args) {
Double age = 1.0;
Double temp = (Double) (age / 3);
System.out.println(temp);
BigDecimal b = new BigDecimal(temp);
double f1 = b.setScale(2,BigDecimal.ROUND_DOWN).doubleValue();
System.out.println(f1);
}
}