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?
They do, but you're probably better off just writing
T abs = ((x<y) ? (y-x) : (x-y));
where T is whatever type you need the result to be.
G
_______________________________________________
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