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. Advertisements

  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. Advertisements

  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. Advertisements

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. Timo Freiberger
    Replies:
    3
    Views:
    1,195
    Bob Hairgrove
    Oct 30, 2004
  2. George Marsaglia

    Assigning unsigned long to unsigned long long

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

    comparing unsigned long and unsigned int

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

    unsigned long long int to long double

    Daniel Rudy, Sep 19, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,583
    Peter Shaggy Haywood
    Sep 20, 2005
  5. CFAN
    Replies:
    6
    Views:
    1,144
    Tor Rustad
    Apr 4, 2007
  6. er
    Replies:
    6
    Views:
    758
    Andre Kostur
    Sep 14, 2007
  7. pereges

    Promoting unsigned long int to long int

    pereges, Jun 30, 2008, in forum: C Programming
    Replies:
    112
    Views:
    2,976
    David Thompson
    Jul 28, 2008
  8. pozz
    Replies:
    12
    Views:
    1,076
    Tim Rentsch
    Mar 20, 2011
Loading...