Results 1 to 3 of 3

Thread: Overflow

  1. #1
    Join Date
    Sep 2005
    Posts
    313

    Unanswered: Overflow

    Hi,

    I have a question.

    dim num as Long

    num = 123000234123

    the message is giving out "Overflow".

    Do we have another datatype instead of the "Long"? I know the "Long" datatype cannot support all digits (123000234123).

    Its range is 2,147,483,648 to 2,147,483,647.

    Does anybody know how to solve?

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    consider replacing all computers using this application with a 64 bit operating system, and suitable applikcation software - that might do the trick......

    outside of that you are going to have to do it the hard way and find some other method of storing such a large number. either split it into 2 components, or store it as text. the former would be far preferble to the latter, unless this number is never ever going to be used mathmatically, ie its just for show / presentation. if its going to be used for calcualtions then you have a serious problem writing a fucntion which can handle any mathmatcical process you require.
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb

    Use Double instead of Long

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •