Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scientific Notation

Status
Not open for further replies.

Zymurgyst

Programmer
Mar 25, 2002
32
US
How can I get VBScript to format a number into scientific notation and still specify the number of digits after the decimal? For example, if I have a value of x = 0.000007979, I would like to display it as 7.98E-6. Using FormatNumber(x, 2),...) leaves me with 0.00!

Thanks in advance,
Zy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top