learn4sfdc
Basic Learning about Salesforce.com (SFDC)
Menu
APEX
Apex Trigger
CSS
Data Loader
Eclipse
Integration
Interview Questions
Salesforce Interview Questions.
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:
Unknown
March 18, 2014 at 4:57 AM
Thanks this works
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Thanks this works
ReplyDelete