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

CLNG overflow

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
Is there anyway to avoid the overflow error at any numbers because there is unlimited number of pages that could be added by the client.

Jason



www.sitesd.com
ASP WEB DEVELOPMENT
 
The Long type is two thousand million (US 2 billion) positive numbers (2,147,483,647) That's a lot of pages (half the reported size of Googles index!)
This could of course be doubled if vbScript allowed for unsigned long integers.

You could use hexadecimal numbers. This would give &H00000000 to &HFFFFFFFF (4,294,967,295) positive numbers to play with.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
why not use a Double?

Range:
-1.79769313486232E308 to -4.94065645841247E-324 for negative values;
4.94065645841247E-324 to 1.79769313486232E308 for positive values.

=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
 
AFAIK precision for double is 15 digits... still better than for integer (9).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top