Activity Forums Salesforce® Discussions What is .setScale() method in Salesforce Apex?

  • Deepak

    February 17, 2020 at 9:21 am

    Hi Aditya,

    setScale(scale) - Returns the Decimal scaled to the specified number of decimal places, using half-even rounding, if necessary. Half-even rounding mode rounds toward the “nearest neighbor.” If both neighbors are equidistant, the number is rounded toward the even neighbor.

    I hope it helps!

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos