In Android, the value entered into the EditText is converted to float using the following line of code.
        Float addPurchUnitCostPrice = Float.valueOf(addPurchaseCostPrice.getText().toString());
I would like to have the value of addPurchUnitCostPrice with 2 decimal places (always). How can this be done?
 
     
     
    