I want to convert a number to a 2 decimal places (Always show two decimal places) in runtime. I tried some code but it only does, as shown below
20.03034 &g
Try
DecimalFormat df = new DecimalFormat("#,##0.00");