Math.abs ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Math.abs ?

What is role of abs

14th Jul 2016, 2:59 PM
hindhu
3 Answers
+ 2
example math.abs(-3) = |-3| = 3 or it will change from negative to positive
14th Jul 2016, 6:06 PM
Hoai Linh Bui Le
Hoai Linh Bui Le - avatar
+ 1
"Maths.abs" is sort of "mathematical sign killer" or "minus/plus wiper" ... -6 becomes 6. ;)
15th Jul 2016, 8:45 AM
arghlub
+ 1
means value in +
15th Jul 2016, 1:28 PM
Hemant Rakesh Gupta
Hemant Rakesh Gupta - avatar