rajeshonline
08-27-2008, 01:40 AM
Hi All,
There is a piece of code where we display a value in one of the column's of the table..for eg
document.getElementById("XYZ").cells[1].innerText== <%=Float.parseFloat("" +1234.7001)%>;
However in the JSP page only 1234.0 is displayed..Does anyone know how to display upto 2 decimal places i.e 1234.00 ?
PS:Have tried DecimalFormat,Big decimal and a javascript function called formatNumber...Nothin is workin in this..
There is a piece of code where we display a value in one of the column's of the table..for eg
document.getElementById("XYZ").cells[1].innerText== <%=Float.parseFloat("" +1234.7001)%>;
However in the JSP page only 1234.0 is displayed..Does anyone know how to display upto 2 decimal places i.e 1234.00 ?
PS:Have tried DecimalFormat,Big decimal and a javascript function called formatNumber...Nothin is workin in this..