Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript convert minus to plus

var posNum = (num < 0) ? num * -1 : num; // if num is negative multiple by negative one ... 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #convert
ADD COMMENT
Topic
Name
9+1 =