PDA

Click to See Complete Forum and Search --> : one stupid question


casparas
Dec 29th, 1999, 05:08 AM
ok now here is my problem

i have the program which works with numbers
and then i work with quite big numbers vb gives me:

run-time error '6':

overflow

what a hell is that?
is there any way to corect that?
how?(if there is)
why sky is blue?

HeSaidJoe
Dec 29th, 1999, 05:33 AM
Try declaring your variables as long.
Dim intMyNumber as Long

the sky is blue because it reflects the ocean!
Wayne

jpark
Dec 29th, 1999, 05:42 AM
Change ur variable data type, so that it can hold bigger number.

Check out this early post.

http://www.vb-world.net/ubb/Forum1/HTML/012219.html

order of storage size :
Byte<Integer<Long<Single<Double

Why ocean is blue? :)
Joon

casparas
Dec 29th, 1999, 05:56 AM
Thanx

-casparas

Nazadus
Dec 30th, 1999, 01:40 AM
Number size is limited to the data type you use, ine xample, integers max = 2032 or somewehre around that

The reason the sky is blue is due to the shemicla, soxygen carbod dioxide, nitrogen passing throught the sun....or at least thats what i think

MR
Dec 30th, 1999, 01:50 AM
The ocean is blue for the same reason that the sky is blue. The blue of the ocean is caused by scattering of sunlight by tiny particles suspended in the water. Blue light, being of short wave length, is scattered more effectively than light of longer wave lengths.

*copy and pasted from the web!

[This message has been edited by MR (edited 12-30-1999).]