IgalSt
IgalSt

Reputation: 1984

VBScript and numbers larger than Long

Is there a way to work with numbers that are larger than VBScript's Long?

Long's range is -2,147,483,648 to 2,147,483,647 and we need to work in an asp page with larger numbers. We cannot work with strings and we need to sum it and do some other calculations.

Upvotes: 1

Views: 2555

Answers (2)

D'Arcy Rittich
D'Arcy Rittich

Reputation: 171509

See here for the available data types: VBScript Data Types

Currency, Single, and Double should all work for you.

Upvotes: 2

Mark Chorley
Mark Chorley

Reputation: 2107

You can use Single or Double for this - just be aware of the precision as they are floating point numbers.

More information here

Upvotes: 1

Related Questions