Prev Demo
Converting To Approximate Exponential Value
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Approximate value with exponential notation.</h1> <p>Click the below button to convert decimal into approximate exponential notation.</p> <input type="button" value="Convert" onclick="Function()" /> <p id="myId"></p> <script> function Function() { var A = 2.74562; var R = A.toExponential(0); document.getElementById("myId").innerHTML = R; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output