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

What's bigger than a long?

Status
Not open for further replies.

grande

Programmer
Feb 14, 2005
657
CA
I have a long that's overflowing. What can I do?

Dim lngCount as Long

-------------------------
Just call me Captain Awesome.
 

grande,

Have you checked out VBA Help?

Skip,

[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue]
 


Double would be my LAST choice. Significant loss of precision!

There are other options!

Skip,

[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue]
 
Hi SkipVought.

After re-reviewing the list, I don't see an obvious options. Can you explain? Is there an option for unsigned long intergers?

ChaZ

There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That Don’t.
 


Variant,
Byte,
Boolean,
Integer,
Long,
Single,
Double,
Currency,
Decimal,
Date,
Object, and
String

So which ones did you eliminate?

Skip,

[glasses] [red]Be Advised![/red]
The band of elderly oriental musicians, known as Ground Cover, is, in reality...
Asian Jasmine![tongue]
 
If I remember correctly Currency (and possibly decimal) are actually stored as integer values and (again if I remember correctly) potentially provide space for larger numbers than long.

Double is often best avoided despite apparantly being able to store the highest/lowest numeric value as numbers beyond a certain value are stored and expressed in standard form. You will also experience floating point errors in doubles (and singles). A lot of the time this will make no difference, but it can have a significant effect in certain scenarios.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top