this is mean of%

 
tm -= tm % 44;
 
zdj231:
tm -= tm % 44;
tm is made equal to tm - the remainder after the division of tm/44
 
i can't compile the code,but i see an EA use this,why
 
zdj231:
i can't compile the code,but i see an EA use this,why


Because it may make sense because of the other code in the EA.

Without knowing the rest of the code, nobody can answer your question.

It's like me asking you "Why did I have chicken soup for breakfast this morning?"

 
GumRai:


Because it may make sense because of the other code in the EA.

Without knowing the rest of the code, nobody can answer your question.

It's like me asking you "Why did I have chicken soup for breakfast this morning?"

the code is blow,thank you int tm=100; tm -= tm % 44; Alert(tm);
 
zdj231:
the code is blow,
? ?
 
RaptorUK:
? ?

my code is int tm=100; tm -= tm % 44; Alert(tm);
 
int tm=100; tm -= tm % 44; Alert(tm);
 
zdj231:
int tm=100; tm -= tm % 44; Alert(tm);
OK, what is your issue, question, point or problem ?
 
RaptorUK:
OK, what is your issue, question, point or problem ?

why the code output is 88
 
zdj231:
why the code output is 88


because that's the answer

100 = 2 * 44 + 12 (tm%44 remainder is 12 )

tm -= tm % 44 you write this now as 100 = 100 - (remainder 100/44)

Reason: