0

What is the use/working of Abs() function?

What is the use of abs() function....Can somebody explain it with example?

29th Dec 2016, 8:35 AM
Mohit Kulkarni
Mohit Kulkarni - avatar
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.
29th Dec 2016, 8:43 AM
Mahir Asef Kabir
Mahir Asef Kabir - avatar