This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi All, In our project, the calculated tax amount is assigned to a double variable. Using the method format present in DecimalFormat class, total tax amount is rounded to 2 decimal places and assigned to a String variable. But during execution of the program in JRun3.1 server and JDK1.2 we found JRun goes down when decimal format conversion takes place. So please suggest any other way to round of the double value to 2 decimal places and store in a string variable. Thank you Regards kumar.