Sunday, 16 August 2015

java calculate percentage from decimal values

public String getAgegt150Per() {
BigDecimal bd3 = agegt150.divide(this.totalPayment,
Integer val = bd3.multiply(new BigDecimal(100)).intValue();
if (val.intValue() == 0)
return "";
return val.toString() + "%";


  1. This code is really nice and it's working. Tahnks for sharing this all the information.

    Render Cleaning Company
    K-Rend Services

  2. Microsoft office has a different version, and the entire version has the different setup file. Some of the version is Office 2013, Office 2016 and Office 365 etc. Go to and redeem your key. Office Com Setup is one of the most popular productivity programs around. If you have your product key handy, you don't even need a disc to start installing Office just visit office setup help. Norton is one of the most reliable antivirus providers in the market to download visit . There are multiple manufacturers making printers for home and office use with varied range as printer series per the need and affordability of different customers. Printer Tech Support. It has become one of the most useful computer hardware devices that allow people to convert computer generated typescript into a physical printed document.


  3. Thank you sharing the excellent post about JAVA programming. you helped me to gain

    more information on the JAVA language.

    Java Training Institutes in Chennai |
    Java Course in Chennai