Posted By

Scooter on 09/27/08


Tagged


Versions (?)


Advertising

Website Promotion DIRECTORY is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Who likes this?

1 person has marked this snippet as a favorite

wizard04


Format a number in scientific notation


Published in: ASP 






URL: http://reusablecode.blogspot.com/2008/09/format-number-in-scientific-notation.html

Expand | Embed | Plain Text
  1. <%
  2. ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved.
  3. '
  4. ' This work is licensed under the Creative Commons Attribution License. To view
  5. ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or
  6. ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
  7. ' 94305, USA.
  8.  
  9. ' Express a number in scientific notation.
  10. function formatScientific(someFloat)
  11. dim power
  12.  
  13. power = (someFloat mod 10) - 1
  14. formatScientific = cStr(cDbl(someFloat) / 10^power) & "e" & cStr(power)
  15. end function
  16. %>

Report this snippet 

You need to login to post a comment.

Download royalty free graphics