113
rated 0 times
[
116]
[
3]
/ answers: 1 / hits: 15482
/ 14 Years ago, fri, january 14, 2011, 12:00:00
Based on http://www.mredkj.com/javascript/nfbasic2.html, following code will result in 5.6e+2.
num = 555.55;
result = num.toPrecision(2); // result will equal 5.6e+2
How can I let the output of the result variable be displayed without scientific notation (i.e., e)?
More From » javascript