function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
termfrequencytermfrequency 

Remainder Operator %

Is there an remainder operator like % to get the remainder in a division? ex: 5%3 =2

 

Thanks

Ram

Best Answer chosen by Admin (Salesforce Developers) 
AlexPHPAlexPHP

You mean the modulus operator.

 

Yes, it's the mod function.

 

Check out the APEX Math Methods for more info: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_math.htm

All Answers

AlexPHPAlexPHP

You mean the modulus operator.

 

Yes, it's the mod function.

 

Check out the APEX Math Methods for more info: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_math.htm

This was selected as the best answer
termfrequencytermfrequency

Thanks, It works!

 

Ram