DecimalFormat hisFormat = new DecimalFormat("########.##");
hisFormat.setRoundingMode(RoundingMode.DOWN);
Float x=12345678.12345f;
System.out.println("Float Value " + hisFormat.format(x));
Above code print "Float Value" as 12345678 I need 12345678.12
How can I get my result? Please let me know.