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

    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) Is FFFF a mix of b...

  2. Why unsigned int 0xFFFFFFFF is equal to int -1? - Stack Overflow

    In C or C++ it is said that the maximum number a size_t (an unsigned int data type) can hold is the same as casting -1 to that data type. for example see Invalid Value for size_t Why? I mean, (t...

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

    Oct 30, 2012 · The hexadecimal notation 0xffff makes it clear that all bits in the number are 1. The 65535 is the same number, but the binary representation isn't as obvious. It's only a count number. …

  4. 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 decimal number, then …

  5. Convert Integer to Hex where decimal 1 representation is FFFFFF

    May 29, 2022 · I have been trying to solve the following mock exam paper problem, unfortunately, I am unable to rationalise how it is possible to transform the decimal 1 into hexadecimal "ffffff" …

  6. Como funcionam os números em hexadecimal?

    Em decimal, usamos os dígitos arábicos 0 1 2 3 4 5 6 7 8 9; em hexadecimal, usamos os dígitos 0 1 2 3 4 5 6 7 8 9 A B C D E F 1; em base 36 vamos mais longe ainda, de 0 até a letra Z! em binário, vai só …

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

    Jul 30, 2022 · 60 Convert hex string to int in Python I may have it as "0xffff" or just "ffff". To convert a string to an int, pass the string to int along with the base you are converting from. Both strings will …

  8. How to convert a UUID to a number with less than 40 digits?

    Feb 16, 2022 · I need to convert a UUID (like ffffffff-ffff-ffff-ffff-ffffffffffff) to a number with as least digits as possible. These UUIDs are being generated by com.fasterxml.uuid.impl.TimeBasedGenerator.java.

  9. c++ - Can std::hex input format support negtive int16_t hex string with ...

    May 24, 2023 · Can std::hex input format support negtive int16_t hex string with two's complement notation such as `ffff` for `-1`? Asked 3 years ago Modified 3 years ago Viewed 301 times

  10. Unexpected uint64 behaviour 0xFFFF'FFFF'FFFF'FFFF - 1 = 0?

    Apr 30, 2023 · Consider the following brief numpy session showcasing uint64 data type import numpy as np a = np.zeros(1,np.uint64) a # array([0], dtype=uint64) a[0] -= 1 a # …