1. ## floor() and ceiling()

doesn't floor round a decimal number down to the nearest whole number, and ceiling to go up?

2. Yes that is what they do. You can write your own macro's for these and gain a little speed.

3. ## Re: floor() and ceiling()

Originally posted by frenchfry164
I am making a kickass RPG called Terminus. I will make a website soon. (0.00000001% done, lol)
Better take a peek at Google so you can guage your chances of getting your ass sued off...

Quzah.

4. this is just a project name. it isn't the real name. plus I'm not making any money off it (freeware), so they can't sue me unless I say it's an original name, or something like that.

and on the rounding issue, how can a round a number to the nearest 40th number up? Like if I had 56 it would round it up to 80, etc.

5. Code:
```int roundto( int rndto, int tornd )
{
return ( tornd<(rndto/2) ? 0 : rndto );
}```
That should work.

number = 37;
number = roundto( 80, 37 );

Now number is rounded down to zero.

number = 40;
number = roundto( 80, 40 );

Now number is rounded up to 80.

Quzah.