🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

|-x|=x

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

This topic is closed to new replies.

Advertisement