DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+1 =
Submit