Hi I can't find the solution for this problem I am having.
if 10 items can fit in a box and we have 1234 items, the answer must be 124. I keep getting 123.4 when i divide.
likewise if i could fit 100 items in a box and i have 1,000,000 then i should have 10000 boxes and not 10001.
how would I round all decimal points up to the whole number and not down, and how do I leave whole numbers the way they are?
I tried adding 1 to the box capacity but this makes 10000 become 10001.
Duoas is referring you to the functions ceil() and floor().........I think.
Last edited on