import java.text.DecimalFormat;
public class MyClass {
public static void main(String args[]) {
double pi = 3.14159265359;
DecimalFormat df = new DecimalFormat("#.##");
double rounded = Double.parseDouble(df.format(pi));
System.out.println(rounded);
}
}
/*
run:
3.14
*/