Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Overflow


Message #1 by "euan green" <euan_green@h...> on Wed, 22 May 2002 16:39:41
Can anyone tell me what this error message might mean?

Microsoft VBScript runtime error '800a0006' 

Overflow: 'Clng'

Regards


Euan 
Message #2 by stephen@p... on Wed, 22 May 2002 17:17:38
I think its an overflow
You are probably trying to convert a non-numeric variable into Long


> Can anyone tell me what this error message might mean?

> Microsoft VBScript runtime error '800a0006' 

> Overflow: 'Clng'

> Regards

> 
E> uan 
Message #3 by "euan green" <euan_green@h...> on Wed, 22 May 2002 17:40:19
Yes, I've been looking at the error messages etc at MSDN and have got that 
far.

It happens when I try to use a double type variable in a Cos or Sin 
calculation.  The reason I convert the number to be used into a double is 
that the value is greater than : 2147483647, which is the maximum number 
for an integer using the long datatype.  If there was a way of expressing 
an integer greater than 2147483647 I would use that but I cannot seem to 
find info about this anywhere, as far as I am aware the datatypes are as 
follows:

integers:
int:  32,768 to 32,767. 
long:  -2,147,483,648 to 2,147,483,647.
floating points:
single:  1.401298E-45 to 3.402823E38 
double: 4.94065645841247E-324 to 1.79769313486232E308 

Am am I being really dumb here?  I want to use a value greater than 
2,147,483,647. (say 9999999999999999) in a cos/sin statement

ie: value = Cos(9999999999999999)

I aint no mathematical genius but I really don't reckon this should be too 
difficult should it?

Mathematical Mishaps

Euan

> I think its an overflow
Y> ou are probably trying to convert a non-numeric variable into Long

> 
>>  Can anyone tell me what this error message might mean?

> > Microsoft VBScript runtime error '800a0006' 

> > Overflow: 'Clng'

> > Regards

> > 
E> > uan 
Message #4 by "euan green" <euan_green@h...> on Thu, 23 May 2002 10:51:10
I think it might be because I am not converting to Radians,  however, does 
anyone know if there is a constant for 'pi' ?

Euan


> Yes, I've been looking at the error messages etc at MSDN and have got 
that 
f> ar.

> It happens when I try to use a double type variable in a Cos or Sin 
c> alculation.  The reason I convert the number to be used into a double 
is 
t> hat the value is greater than : 2147483647, which is the maximum number 
f> or an integer using the long datatype.  If there was a way of 
expressing 
a> n integer greater than 2147483647 I would use that but I cannot seem to 
f> ind info about this anywhere, as far as I am aware the datatypes are as 
f> ollows:

> integers:
i> nt:  32,768 to 32,767. 
l> ong:  -2,147,483,648 to 2,147,483,647.
f> loating points:
s> ingle:  1.401298E-45 to 3.402823E38 
d> ouble: 4.94065645841247E-324 to 1.79769313486232E308 

> Am am I being really dumb here?  I want to use a value greater than 
2> ,147,483,647. (say 9999999999999999) in a cos/sin statement

> ie: value = Cos(9999999999999999)

> I aint no mathematical genius but I really don't reckon this should be 
too 
d> ifficult should it?

> Mathematical Mishaps

> Euan

> > I think its an overflow
Y> > ou are probably trying to convert a non-numeric variable into Long

> > 
>> >  Can anyone tell me what this error message might mean?

> > > Microsoft VBScript runtime error '800a0006' 

> > > Overflow: 'Clng'

> > > Regards

> > > 
E> > > uan 

  Return to Index