Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <body> <p>Klicken Sie auf den Button, um den String zu parsen.</p> <button onclick="myFunction()">Click</button> <p id="demo"></p> <script> function myFunction() { var myString = +("384.75")+"<br>"; var number = myString + "<br>" ; document.getElementById("demo").innerHTML = number; } </script> </body> </html>