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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

limit on numbers printed to the screen?

Status
Not open for further replies.

Ovatvvon

Programmer
Feb 1, 2001
1,514
US
I have mathmatical formulas done in VBscript functions and returned to the original call which is printed to the screen. However, the problem is that the number is so big it returns the number with an "E" extension like this:

2.64443852120454E+47


How can I tell it to print out the entire number with out the E+47?

__________________________________
<%
Response.write(&quot;<TEXTAREA cols=80 rows=15>&quot; & mathForumula(startingValue) & &quot;</TEXTAREA>&quot;)
%>
-Ovatvvon :-Q
 
Try doing this:

Response.write(&quot;<TEXTAREA cols=80 rows=15>&quot; & CLng(mathForumula(startingValue)) & &quot;</TEXTAREA>&quot;)
 
I've tried that, but it causes an overflow. I've used CDbl(), which removes the ending part that I wanted to get rid of, but it only accounts for 15 digits, and any others are just zeros after it...like so:

If you have the number 36156831335 and you use the power of 2 on it so the answer should be 1307316452187637882225, the answer on the web page it only presents 1307316452187640000000.

I need the actual number to be presented. -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top