About 6,280,000 results
Open links in new tab
  1. Python representation of negative integers - Stack Overflow

    When performing a bitwise operation, CPython replaces negative numbers by their two's complement and sometimes (!) performs the reverse operation (ie replace the two's complements by negative …

  2. How does C store negative numbers in signed vs unsigned integers?

    Oct 31, 2014 · When you store signed and negative value in unsigned variable it gets converted to unsigned. It so happens that this conversion is reversible, so signed -35 converts to unsigned …

  3. Python sorting list with negative number - Stack Overflow

    Feb 24, 2017 · So the list is sorted however the negative integers are sorted in reverse order. I suspect this may be the problem with the fact that I am sorting a list of ints read in from a file, and the type of …

  4. regex - How do I include negative decimal numbers in this regular ...

    Apr 4, 2013 · How do I match negative numbers as well by this regular expression? This regex works fine with positive values, but I want it to also allow negative values e.g. -10, -125.5 etc.

  5. Representation of negative numbers in C? - Stack Overflow

    Mar 14, 2016 · How does C represent negative integers? Is it by two's complement representation or by using the MSB (most significant bit)? -1 in hexadecimal is ffffffff. So please clarify this for me.

  6. Right shifting negative numbers in C - Stack Overflow

    (Shifting a negative two’s complement integer arithmetically right one place is not the same as dividing by two!) So it's implementation dependent in theory. In practice, I've never seen an implementation …

  7. sorting - Radix Sort for Negative Integers - Stack Overflow

    Dec 25, 2014 · I am trying to implement radix sort for integers, including negative integers. For non-negative ints, I was planning to create a queue of 10 queues correspondingly for the digits 0-9 and …

  8. How are negative numbers represented in 32-bit signed integer?

    May 28, 2010 · How are negative number represented in 32-bit signed integer? Is it two's or one's complement? or the last bit on the left is like a flag? For example: (-10)

  9. c - Modulo operation with negative numbers - Stack Overflow

    Jul 30, 2012 · The % operator in C is not the modulo operator but the remainder operator. Modulo and remainder operators differ with respect to negative values. With a remainder operator, the sign of the …

  10. regex pattern to allow positive and negative integers

    Oct 24, 2017 · 9 I am trying to find regex pattern in XSD that allow both positive and negative integers My current code allows only positive integers.