JavaScript to Standard Form converter (times 10^x)


/ Published in: JavaScript
Save to your folder(s)

Use this to convert JavaScript numbers to official scientific standard form (e.g. 1.54 × 10^3)
Uses HTML <sup> tags and × symbol

Example:
var number = 4.223e20;
var stnd = standardForm(number);
// stnd = 4.223 x 10^20

URL: http://astrophysicsonline.info/resources/calculator.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.