Top "Unsigned" questions

An unsigned variable is a variable that can only represent non-negative numbers.

printf format for unsigned __int64 on Windows

I need to print a ULONGLONG value (unsigned __int64). What format should i use in printf ? I found %llu in …

c++ c windows printf unsigned
Best way to convert a signed integer to an unsigned long?

For certain hash functions in Java it would be nice to see the value as an unsigned integer (e.g. …

java unsigned
Unsigned double in C++?

Why doesn't C++ support unsigned double syntax?

c++ double unsigned
Unsigned Integer in Javascript

I'm working on a page that processes IP address information, but it's choking on the fact that integers are signed. …

javascript bit-manipulation unsigned
What happens when I assign a negative value to an unsigned int?

Possible Duplicate: signed to unsigned conversion in C - is it always safe? Let's say I declare a variable of …

c unsigned
difference between printing a memory address using %u and %d in C?

I reading a C book. To print out a memory address of a variable, sometimes the book uses: printf("%u\…

c unsigned
How to get the signed integer value of a long in python?

If lv stores a long value, and the machine is 32 bits, the following code: iv = int(lv & 0xffffffff) results …

python unsigned signed
1's complement using ~ in C/C++

I am using Visual Studio 2013. Recently I tried the ~ operator for 1's complement: int a = 10; cout << ~a <&…

c++ c unsigned signed ones-complement
Comparison operation on unsigned and signed integers

See this code snippet int main() { unsigned int a = 1000; int b = -1; if (a>b) printf("A is BIG! %…

c gcc unsigned signed
Unsigned long in Java

Currently, I am using signed values, -2^63 to 2^63-1. Now I need the same range (2 * 2^64), but with positive values only. …

java long-integer biginteger unsigned