Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved Java
6 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    trump101
    wrote on last edited by
    #1

    [Message Deleted]

    T 1 Reply Last reply
    0
    • T trump101

      [Message Deleted]

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2
      1. we don't do homework here. 2) read the forums posting guidelines 3) "the int type has a limitation: it can’t store integer values larger than 231" Where the f*ck does this come from ?????

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      T 1 Reply Last reply
      0
      • T toxcct
        1. we don't do homework here. 2) read the forums posting guidelines 3) "the int type has a limitation: it can’t store integer values larger than 231" Where the f*ck does this come from ?????

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        T Offline
        T Offline
        TannerB
        wrote on last edited by
        #3

        I would assume that by 231 he means 2^31, which is the limitation for a signed int.; As for the question, what you are going to have to do is remember back to gradeschool, when we did longhand arithmetic. 1001 2009 ---- 3010 Write out psuedo code on how to do this, then implement it. isValidBigInt should be easy.

        T 1 Reply Last reply
        0
        • T TannerB

          I would assume that by 231 he means 2^31, which is the limitation for a signed int.; As for the question, what you are going to have to do is remember back to gradeschool, when we did longhand arithmetic. 1001 2009 ---- 3010 Write out psuedo code on how to do this, then implement it. isValidBigInt should be easy.

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          TannerB wrote:

          I would assume that by 231 he means 2^31

          this is fundamentaly different, and moreover, WRONG. the higher value an unsigned int can take is (2^32)-1, which is 4 294 967 295.

          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          T H 2 Replies Last reply
          0
          • T toxcct

            TannerB wrote:

            I would assume that by 231 he means 2^31

            this is fundamentaly different, and moreover, WRONG. the higher value an unsigned int can take is (2^32)-1, which is 4 294 967 295.

            [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

            T Offline
            T Offline
            TannerB
            wrote on last edited by
            #5

            Thanks, must of had a brain fart when I read it.

            1 Reply Last reply
            0
            • T toxcct

              TannerB wrote:

              I would assume that by 231 he means 2^31

              this is fundamentaly different, and moreover, WRONG. the higher value an unsigned int can take is (2^32)-1, which is 4 294 967 295.

              [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

              H Offline
              H Offline
              HosamAly
              wrote on last edited by
              #6

              As far as I remember, there is only signed int in Java, so its maximum value would be (2^31)-1 (2,147,483,647). My LinkedIn Profile

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups