0

What does the built-in function 'abs()' used for?

15th Dec 2016, 9:08 PM
Djaber Meghar
Djaber Meghar - avatar
5 Respuestas
+ 3
returns distance from origin(0)
16th Dec 2016, 4:48 AM
nitesh
+ 2
Returns absolute value of the number.
15th Dec 2016, 9:14 PM
Rishi Anand
Rishi Anand - avatar
+ 2
abs(5) == 5 abs(-5) == 5 absolute value is a numerical distance between zero and a given number
15th Dec 2016, 9:43 PM
Demeth
Demeth - avatar
0
what did you mean by 'absolute value'? sorry i'm arabian & my english is not good
15th Dec 2016, 9:37 PM
Djaber Meghar
Djaber Meghar - avatar
0
thank you
15th Dec 2016, 9:45 PM
Djaber Meghar
Djaber Meghar - avatar