Re: Regarding to function absolute numbers.
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.