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

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

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