Code:'if I have
dim myNum as Long,yourNum as Long _
myNewNum as Long
mynum = 999999
yourNum = 8899898
myNewNum = (myNum * yourNum)
I blow up with an overflow
what is the syntax to condense it to avoid the overflow
Printable View
Code:'if I have
dim myNum as Long,yourNum as Long _
myNewNum as Long
mynum = 999999
yourNum = 8899898
myNewNum = (myNum * yourNum)
I blow up with an overflow
what is the syntax to condense it to avoid the overflow
yea make it:
myNewNum as single
instead of long
if that doesn't work, make it a double
I'm sorry, the single, or double dont work, in the vb book that I have, a double is the biggest thing, sorry, I woun't be able to help
this is the answer:
8899889100102
If you want really high numbers, use Double, otherwise, use Currency.
currency has $ signs doesn't it? in my vb book it says:
Currency - Data that holds dollar amounts from -$922,337,203,685,477.5205 to $922,337,203,685,477.5807. The four decimal places ensure that proper rounding can occer. VB respects your windows international serrings and adjusts currency amounts according to your country's requiremenets. Never include dollar sign when entering vurrency values.
thanks all...