Profile
Achievement
Jellybean732's Recent Snippets
- All /
« Prev 1 Next »
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
0
828
posted 13 years ago by Jellybean732