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