• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ceil woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ceil woes
      • From: Greg Herlihy <email@hidden>
    • Re: ceil woes
      • From: Frederick Cheung <email@hidden>
    • Re: ceil woes
      • From: Adam Mercer <email@hidden>
  • Prev by Date: NSImageView subclass, setImage, and bindings
  • Next by Date: Re: ceil woes
  • Previous by thread: Re: NSImageView subclass, setImage, and bindings
  • Next by thread: Re: ceil woes
  • Index(es):
    • Date
    • Thread