Results 1 to 3 of 3

Thread: Overflow

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268

    Thumbs down Overflow

    i have this code

    double= double / ((double/ double) + (Double/ double) + (double /double))

    hehe , i get runtime error 6: overflow
    what's the matter?

  2. #2
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    every time you mention "double" do u mean a variable double value? If Double itself is the name of your variable, then nice joke...it'll always be = to 3


    anyways...Double is the largest data type, so if it overflows...there isnt much you can do.
    You just proved that sig advertisements work.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    New Zealand
    Posts
    268
    argh dammit, thanks heaps i'll have to do it some other way

    yeah they were double values i thought it would be more useful than: CO2 = Thickness / ((Resin1.GetThickness / Resin1.GetCO2) + (Resin2.GetThickness / Resin2.GetCO2) + (Resin3.GetThickness / Resin3.GetCO2))

    te he he
    Thanks again

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