ceil woes
ceil woes
- Subject: ceil woes
- From: Robert Dell <email@hidden>
- Date: Fri, 03 Feb 2006 05:57:53 -0500
ok, i've been TRYING, searching the docs online, searching the /usr/include folder, searching for programs that use it for anything that has ceil in it but can't find anything to solve my problem.
the bad line is this:
mysurvival[i].skillreqs = mysurvival[i].skillvalue-(lround(ceil((calcCircle*3.5)+280)*100));
mysurvival is defined as:
struct expskill
{
long skillvalue;
long skillreqs;
long skillNeeded;
long skillexclude;
char skillname[80];
} myArmor[8], myweapon[25], mymagic[5], mysurvival[15], mylore[13], myinstruments[5], swap;
the warnings i'm getting are:
warning: incompatible implicit declaration of built-in function 'lround'
warning: incompatible implicit declaration of built-in function 'ceil'
At first, I was just getting the problem with ceil and then noticed it returned double. I then decided to convert the double to long and found lround which looks to do the trick. All it did was to add yet another warning.
any suggestions?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden