Advertisement

|-x|=x

Started by August 20, 2000 12:36 AM
1 comment, last by HellRiZZer 24 years, 3 months ago
Just forgot, is there a function converting -5 to 5? Like |-5| in maths?
Yes. Use abs(x) or fabs(x) for doubles. These are defined in math.h.
Advertisement
thanks.. )
Stupid.. me)

This topic is closed to new replies.

Advertisement