If you want to force a number to change or keep it positive.
Here is the way:
abs() for int
fabs() for double
fabsf() for float
If you want more info, you can look here:
abs() for int
fabs() for double
fabsf() for float
If you want more info, you can look here: