Wednesday, January 22, 2014

How to round the double to two decimal places in Apex

How to round the double to two decimal places in Apex

Decimal d = 100/3;
Double ans = d.setScale(2) ;


1 comment: