What does the built-in function 'abs()' used for? | SoloLearn: Learn to code for FREE!

0

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

12/15/2016 9:08:19 PM

Djaber Meghar

5 Answers

New Answer

+3

returns distance from origin(0)

+2

Returns absolute value of the number.

+2

abs(5) == 5 abs(-5) == 5 absolute value is a numerical distance between zero and a given number

0

what did you mean by 'absolute value'? sorry i'm arabian & my english is not good

0

thank you