Top "Int" questions

Common datatype in many programming languages for representing a whole number.

Swift: Convert Int16 to Int32 (or NSInteger)

I'm really stuck! I'm not an expert at ObjC, and now I am trying to use Swift. I thought it …

swift int int32 uint16
Convert int to unsigned short java

I have written a .obj parser in java to modelize 3D objects on iPhone. I would like to export the …

java int unsigned short
Integer summing blues, short += short problem

Program in C#: short a, b; a = 10; b = 10; a = a + b; // Error : Cannot implicitly convert type 'int' to 'short'. // we …

c# types int short
Set the number of digits for an Integer

Is there a way in C++ to make the compiler take a certain number of digits even if they first …

c++ integer int iomanip
Difference between unsigned and unsigned int in C

Could you please make it clear what the difference is between unsigned and unsigned int? Maybe some example code would …

c int unsigned
C++: Compiler warning for large unsigned int

I have following array, that I need to operate by hand on bitmaps. const unsigned int BITS[32] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}; Unfortunately, when compiled …

c++ int warnings unsigned
How to check if a sequence of numbers has a increasing/decreasing trend in C++

What's the best way to check if a sequence of numbers has an increasing or decreasing trend? I know that …

c++ vector int trend
Convert getdate() to int

When I run the following query: select convert(int, getdate()) I get the result: ----------- 41238 (1 row(s) affected) Does anyone …

sql casting int getdate
Convert a bigint to a string in Go

How do one convert a big int to a string (or integer) in Golang? bigint := big.NewInt(123) //This is what …

string int go bigint
Why does int i = 1024 * 1024 * 1024 * 1024 compile without error?

The limit of int is from -2147483648 to 2147483647. If I input int i = 2147483648; then Eclipse will prompt a red underline …

java int