About 801,000 results
Open links in new tab
  1. hex - hexadecimal converting back into decimal - Stack Overflow

    Jul 26, 2013 · My book says the hexadecimal notation FFFF equals 65535 in decimal value. As I understand it that equals to 2^16. There are a couple of things I still don't fully understand. 1) …

  2. Convert FFFFFF to decimal value (C language) - Stack Overflow

    Dec 25, 2013 · I am trying to convert a string representing a 24-bit hexadecimal number (FFFFFF) to its decimal equivalent (-1). Could anyone help me understand why the following code does …

  3. How do I convert hex to decimal in Python? - Stack Overflow

    Feb 9, 2012 · I have some Perl code where the hex() function converts hex data to decimal. How can I do it on Python?

  4. Convert hex string to integer in Python - Stack Overflow

    Oct 16, 2008 · Worth repeating "Letting int infer If you pass 0 as the base, int will infer the base from the prefix in the string." How to convert from hexadecimal or decimal (or binary) to integer …

  5. How to calculate size of memory by given a range of address?

    In your example for Range 1, you are correct. That is the size of the memory, stated in hexidecimal, in bytes. You may gain the most insight by first converting 00FF FFFF to a …

  6. php - why use 0xffff over 65535 - Stack Overflow

    Oct 30, 2012 · I've seen some PHP script which uses 0xffff in mt_rand(0, 0xffff). I do echo 0xffff; and results to 65535. Is there any significance of using this 0xffff? And also what is that?

  7. Why convert 0xffffffff to decimal is -1 in C? - Stack Overflow

    Jul 17, 2012 · Why convert 0xffffffff to decimal is -1 in C? Asked 13 years, 5 months ago Modified 5 years, 7 months ago Viewed 12k times

  8. c++ - Can std::hex input format support negtive int16_t hex string …

    May 24, 2023 · Enter a hexadecimal number: ffff Decimal representation: 32767 You see, the result value 32767 is the largest value of int16_t. So, my guess is that the line std::cin >> …

  9. IPv6 addresses and Hexadecimal: If F is equal to 16, how would 16 ...

    Mar 8, 2021 · 1111111111111111 = FFFF Each F in this scenario is clearly only representing 4 bits. Would 1 F not suffice in this situation? Forgive me if this is a bit of a simpleton question, …

  10. How can I convert a hex ASCII string to a signed integer

    Dec 22, 2012 · 2 In a language like C, 'FFFF' can be interpreted as either a signed (-1) or unsigned (65535) value. You can use Python's struct module to force the interpretation that …