• 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
Re: Regarding to function absolute numbers.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding to function absolute numbers.


  • Subject: Re: Regarding to function absolute numbers.
  • From: Marten van Gelderen <email@hidden>
  • Date: Tue, 10 Feb 2004 18:19:30 +0100

Dear Susan,

Look in math.h and try:

extern double fabs ( double );
extern float fabsf ( float );

Objective-C is a superset of C, so you can use all the functions in math.h as long as you provide them with the correct type and make correctly use of the delivered type or cast the delivered type.

On 9 Feb 2004, at 10:15 AM, susan tsai wrote:

Dear all the experts,

I am new to Mac Development and now working on a program that need to use abs function for calculating numbers. The code std::abs works for the framework on OS 10.1, however, after migrating the environment to OS 10.3 using Xcode tool, there is an error "abs undeclared in namespace std" occurred after compiling. Can everyone please tell me why and how to fix it?

Groeten, Marten
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Regarding to function absolute numbers. (From: "susan tsai" <email@hidden>)

  • Prev by Date: Web Service Timeout property link error
  • Next by Date: Create an image Browser
  • Previous by thread: Regarding to function absolute numbers.
  • Next by thread: Reading from & Writing to Formatted Flat Files
  • Index(es):
    • Date
    • Thread