- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to convert a String containing Scientific Notation to correct JavaScript number format?
To convert a string with Scientific Notation, use the Number function. Pass the value to this function.
Example
You can try to run the following code to convert a string to correct number format −
<!DOCTYPE html> <html> <body> <script> document.write("String with Scientific Notation converted below:<br>"); document.write(Number("7.53245683E7")); </script> </body> </html>
Output
String with Scientific Notation converted below: 75324568.3
Advertisements