package kju.o;
import static kju.print.Printer.*;
import java.text.*;
class MathDemo
{
public static void main(String[] args)
{
double d = 1.2458;
println(round(d)); //prints:1.25
} static String round(double d)
{
DecimalFormat nf = new DecimalFormat("#.00");
return nf.format(d); //retain two decimal digits.
}
}