Skip to main content
Ganesh Dev 님이 #Salesforce Developer에 질문했습니다
how to get remainder in apex programming language,

 

+, - ,*, / working but % not working...........

 

my intention is,  if i write X%Y means(5%3) what is the result.....?

 

and i written this in apex class but it is given error like no such opereator or no such method.

 

please give answer as soon as possible .
답변 3개
  1. 2022년 10월 21일 오전 9:25

    You can use Math.mod(11,2);

0/9000