dcsimg

How to show money format on the JSP page?

Jeff Hubbach

Use NumberFormat.

double value = 45392834.44d
NumberFormat nf = NumberFormat.getCurrencyInstance();
System.out.println(nf.format(value));