Thread: Question on the Bits...

  1. #1
    Registered User
    Join Date
    Jul 2002

    Question on the Bits...

    Okay, here goes:

    So technically, most things are running on 32bits right? Your running on 32bit OS and I'm running on a 32bit OS. (I think) And well... If 32 bit defines various values of say integers, what will happen when we get to 128bit standards? Will they increase? And if so, by how much? Like the int can hold some 2million on a 32bit machine. How much could it hold on a 128bit machine?

    Or am I totally misguided on this?

  2. #2
    Join Date
    Aug 2001
    Groningen (NL)
    On 16 bits machines, an integer can be 16 bit, on 32 bit machines, an integer can be 32 bit, this is compiler dependent.

    If you go from a 32 bit machine to a 128 bit machine and your compiler supports 128 bit integers, then variables of type integer can hold larger values than on 32 bit machines.

    Max values can be calculated like this:

    32 bit -> max value is 2^32-1
    128 bit -> max value is 2^128-1

    So the difference is (2^128-1) - (2^32-1).

  3. #3
    Registered User
    Join Date
    Jul 2002
    wow, unless I did my calculations wrong, that's a pretty big number. :P I got 3.4028236692093846346337460743177e+38 I hate scientific notation, lol. Sure, it serves its purpose, but it only makes it impossible to get the real scope of a number. Anyway, it's big. Up in the trillions of trillions of trillions (litterally) it appears.

    ( 340,282,366,920,938,463,463,374,607,431,770,000,00 0 ? )

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cache question
    By uscuba2 in forum Tech Board
    Replies: 1
    Last Post: 05-30-2009, 07:59 PM
  2. bit operation question
    By mr_coffee in forum C Programming
    Replies: 3
    Last Post: 04-07-2009, 05:00 PM
  3. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  4. Working with bits and SHA-1
    By Desolation in forum C++ Programming
    Replies: 6
    Last Post: 12-28-2008, 01:34 AM
  5. Question...
    By TechWins in forum A Brief History of
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM