Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Absolute Value |x - y|



Hi,
The standard function abs() will do what you want. If you're using
floating-point numbers, you'll want fabs() instead.

Cheers,
Will

--- Malte <email@hidden> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi *,
> 
> i've been looking around trying to find a method that calculates the 
> |absolute value| of a number.
> Without success.
> Does anyone know if such a function exists?
> Thanks much!
> 
> - -malte
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> 
> iD8DBQFBsgz7OzjQTiEGtHsRAlSgAJ0duzNzsCXOEW8ipJNT8d2r0qro4ACcC4Qi
> q+3dcCuex28s6wLCW68rZLo=
> =pPUS
> -----END PGP SIGNATURE-----
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
> 
> This email sent to email@hidden
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Absolute Value |x - y| (From: Malte <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.