unsigned int \ long

Discussion in 'Python' started by Roman Yakovenko, Aug 13, 2003.

  1. Hi. I need to work with integer as unsigned integer, but
    I can't find documentation how can I do it.

    Some reference on this will be appreciated.

    For example (unsigned int)(-1) == 0xFFFFFFFF.

    Thanks.

    Roman.
     
    Roman Yakovenko, Aug 13, 2003
    #1
    1. Advertising

  2. Roman Yakovenko

    Terry Reedy Guest

    "Roman Yakovenko" <> wrote in message
    news:...
    >Hi. I need to work with integer as unsigned integer, but
    >I can't find documentation how can I do it.


    >Some reference on this will be appreciated.


    >For example (unsigned int)(-1) == 0xFFFFFFFF.


    Python does not have a separate count type. Just use 0 and positive
    ints and longs.

    TJR
     
    Terry Reedy, Aug 13, 2003
    #2
    1. Advertising

  3. look module struct -- Interpret strings as packed binary data

    Andres

    "Roman Yakovenko" <> wrote in message
    news:...
    Hi. I need to work with integer as unsigned integer, but
    I can't find documentation how can I do it.

    Some reference on this will be appreciated.

    For example (unsigned int)(-1) == 0xFFFFFFFF.

    Thanks.

    Roman.
     
    Andres Viikmaa, Aug 13, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. George Marsaglia

    Assigning unsigned long to unsigned long long

    George Marsaglia, Jul 8, 2003, in forum: C Programming
    Replies:
    1
    Views:
    746
    Eric Sosman
    Jul 8, 2003
  2. sridhar

    comparing unsigned long and unsigned int

    sridhar, Nov 1, 2004, in forum: C Programming
    Replies:
    6
    Views:
    471
    J. J. Farrell
    Nov 3, 2004
  3. Daniel Rudy

    unsigned long long int to long double

    Daniel Rudy, Sep 19, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,245
    Peter Shaggy Haywood
    Sep 20, 2005
  4. pereges

    Promoting unsigned long int to long int

    pereges, Jun 30, 2008, in forum: C Programming
    Replies:
    112
    Views:
    2,173
    David Thompson
    Jul 28, 2008
  5. pozz
    Replies:
    12
    Views:
    791
    Tim Rentsch
    Mar 20, 2011
Loading...

Share This Page