Re: Absolute Value |x - y|
Re: Absolute Value |x - y|
- Subject: Re: Absolute Value |x - y|
- From: Will Mason <email@hidden>
- Date: Sat, 4 Dec 2004 11:23:06 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
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:
>
>
> 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:
This email sent to email@hidden