Hallo Gunnar (und Götz),
Wenn du mit 1 multiplizierst, führt der JavaScript-Interpreter eine Typumwandlung durch. Sauberer wäre IMHO eine Lösung mit eval().
Was habt ihr eigentlich gegen parseNum()?
Grüße
Andreas
--
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
(Rich Cook)
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
(Rich Cook)