javscript Q
javscript Q
Out of context: Reply #3
- Started
- Last post
- 6 Responses
- rabattski0
welded is right. why subtracting works is because javascript can't substract strings so it assumes those are numbers.
anyways,
before you do the math do this:
value01 = value01 * 1
etc.
this turns it into a number. only if value01 contains numbers only.