0
What is the use/working of Abs() function?
What is the use of abs() function....Can somebody explain it with example?
1 Odpowiedź
0
abs() function returns the absolute value of its parameter. For non-negative numbers it returns the number itself. For negative numbers however, it removes the - sign and returns the non-negative part.
For example: abs(10) = 10. And abs(-10) = 10.