Activity Forums Salesforce® Discussions How can we convert the large digit decimal number to certain digit decimal number in Salesforce?

  • Tanu

    Member
    September 21, 2016 at 7:03 am

    Hello Mohit,

    Try this,

    Decimal toround = 3.14159265;
    Decimal rounded = toround.setScale(2);
    system.debug(rounded);

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos