doesn't floor round a decimal number down to the nearest whole number, and ceiling to go up?
doesn't floor round a decimal number down to the nearest whole number, and ceiling to go up?
Yes that is what they do. You can write your own macro's for these and gain a little speed.
Better take a peek at Google so you can guage your chances of getting your ass sued off...Originally posted by frenchfry164
I am making a kickass RPG called Terminus. I will make a website soon. (0.00000001% done, lol)
Quzah.
Hope is the first step on the road to disappointment.
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.
That should work.Code:int roundto( int rndto, int tornd ) { return ( tornd<(rndto/2) ? 0 : rndto ); }
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.
Hope is the first step on the road to disappointment.