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
mdinatalemdinatale 

Value not rounding up

 

the value is 102.5 and it makes it 102 i need it to be 103. How can i do this. Thanks in advance

 

 

 

bpm = dc.Principal_Balance__c * (dc.Percent__c/100);
                            if(dc.Round_Payment__c){
                            
                             bpm = bpm.round();
                           }                                                         
                           pm += bpm;                

 

Best Answer chosen by Admin (Salesforce Developers) 
mdinatalemdinatale

had to use math.ceil(bpm)