Results 1 to 7 of 7

Thread: <>

  1. #1

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946
    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

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  3. #3
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    this is the answer:


    8899889100102
    NXSupport - Your one-stop source for computer help

  5. #5
    Guest
    If you want really high numbers, use Double, otherwise, use Currency.

  6. #6
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  7. #7

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    thanks all...
    "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
  •  



Click Here to Expand Forum to Full Width