• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

test please delete

Collapse
This is a sticky topic.
X
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Originally posted by BrilloPad View Post
    Originally posted by NickFitz View Post
    INTEGER_MAX_VALUE
    How much is that?
    It depends on your definition of Integer...

    For a 16 bit twos-complement signed value, 32,767.
    For a 16 bit unsigned value, 65,535.
    For a 32 bit twos-complement signed value, 2,147,483,647.
    For a 32 bit unsigned value, 4,294,967,295.

    And so on...

    Comment


      INTEGER_MAX_VALUE=∞

      Hm, that statement doesn't really work does it...

      Evening all
      ǝןqqıʍ

      Comment


        Originally posted by DiscoStu View Post
        INTEGER_MAX_VALUE=?

        Hm, that statement doesn't really work does it...

        Evening all
        Syntax Error at line 1.

        Hi Stu

        Have you tried

        Code:
        Integer.MAX_VALUE = (Integer)Number.POSITIVE_INFINITY
        ?

        Comment


          4,294,967,295

          Pull your fingers out chaps and you can get this by the weekend.

          Comment


            Originally posted by zeitghost
            System / implementation dependent... 0xFFFFFFFF or 4,294,967,295 odd if it's an unsigned long...
            exactly

            Comment


              Originally posted by Pondlife View Post
              4,294,967,295

              Pull your fingers out chaps and you can get this by the weekend.
              We intend to

              Oh, BTW: 45454

              Comment


                Originally posted by NickFitz View Post
                Syntax Error at line 1.

                Hi Stu

                Have you tried

                Code:
                Integer.MAX_VALUE = (Integer)Number.POSITIVE_INFINITY
                ?
                Lol, I have no idea about coding, I did about 6 months very bad Lotus Notes development several years ago and that's the sum total of my development experience.

                I was just thinking that a max value can't be infinity, because there's no maximum to infinity.

                But then I thought that an integer could theoretically be infinite, and therefore a maximum value of infinity would be valid.

                And then my brain exploded.
                ǝןqqıʍ

                Comment


                  Originally posted by DiscoStu View Post
                  Lol, I have no idea about coding, I did about 6 months very bad Lotus Notes development several years ago and that's the sum total of my development experience.

                  I was just thinking that a max value can't be infinity, because there's no maximum to infinity.

                  But then I thought that an integer could theoretically be infinite, and therefore a maximum value of infinity would be valid.

                  And then my brain exploded.
                  Start here.

                  You'll soon get the hang of it.

                  Comment


                    Originally posted by NickFitz View Post
                    Start here.

                    You'll soon get the hang of it.
                    Looks horifically complicated. Think I'll stick to testing and sending horribly vague, un-reproducable defects to developers instead
                    ǝןqqıʍ

                    Comment


                      Originally posted by NickFitz View Post
                      "-x returns x with the sign reversed. This is different from 0-x in some cases, notably when x is 0. So -(0) is -0, but the sign of 0-0 depends on the rounding mode."

                      Classic!

                      The old ones are always the best...
                      Last edited by NickFitz; 11 December 2007, 20:24. Reason: Fixed minus signs, which forum didn't understand

                      Comment

                      Working...
                      X