|
Thread: <>
-
Aug 25th, 2000, 04:37 PM
#1
Thread Starter
_______
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
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 25th, 2000, 04:39 PM
#2
Frenzied Member
yea make it:
myNewNum as single
instead of long
if that doesn't work, make it a double
NXSupport - Your one-stop source for computer help
-
Aug 25th, 2000, 04:45 PM
#3
Frenzied Member
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
NXSupport - Your one-stop source for computer help
-
Aug 25th, 2000, 04:46 PM
#4
Frenzied Member
this is the answer:
8899889100102
NXSupport - Your one-stop source for computer help
-
Aug 25th, 2000, 04:47 PM
#5
If you want really high numbers, use Double, otherwise, use Currency.
-
Aug 25th, 2000, 04:51 PM
#6
Frenzied Member
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.
NXSupport - Your one-stop source for computer help
-
Aug 25th, 2000, 04:54 PM
#7
Thread Starter
_______
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|