rafaelmaeuer
5/18/2017 - 2:52 PM

Get the absolute value of a number in Javascript - From http://stackoverflow.com/questions/9353929/get-the-absolute-value-of-a-number-in-jav

var x = -25;
x = Math.abs(x); // x would now be 25