objective c - For every 100 in int add 1 -


this super simple maths can't working. trying add 1 int every 100 stored in dynamic int.

for example if myint = 350 intnumber = 3. or myint = 570 intnumber = 5

to clarify don't want remainder hence why don't want x/100

i know similar obvious not:

for (int = 0; < 100; i++) {  } 

this trivial:

int myint = 350; int intnumber = myint / 100; // 3 

Comments

Popular posts from this blog

C# random value from dictionary and tuple -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -