Top "Int" questions

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

How to print 2 int(s) but not add them?

I know this seems like a stupid question (so excuse me). Basically this is what I want to do: int …

java string printing int addition
MySQL datatype INT(11) whereas UNSIGNED INT(10)?

in MySQL if we create a field dataType of INT and does not specify any length/values then it automatically …

mysql types int unsigned-integer
How to convert int to Enum in python?

Using the new Enum feature (via backport enum34) with python 2.7.6. Given the following definition, how can I convert an int …

python python-2.7 enums int type-conversion
NSString To NSNumber

So this problem has been perplexing me for way too long. I have a UIAlertView with a textField in it, …

iphone objective-c nsstring int nsnumber
How to cast Long to Int in Scala?

I'd like to use the folowing function to convert from Joda Time to Unix timestamp: def toUnixTimeStamp(dt : DateTime) : Int = { …

scala types casting int long-integer
In java, is it more efficient to use byte or short instead of int and float instead of double?

I've noticed I've always used int and doubles no matter how small or big the number needs to be. So …

java performance int double primitive-types
Determining sprintf buffer size - what's the standard?

When converting an int like so: char a[256]; sprintf(a, "%d", 132); what's the best way to determine how large a …

c int printf
swift convert Range<Int> to [Int]

how to convert Range to Array I tried: let min = 50 let max = 100 let intArray:[Int] = (min...max) get error Range&…

ios arrays swift int range
Which is faster : if (bool) or if(int)?

Which value is better to use? Boolean true or Integer 1? The above topic made me do some experiments with bool …

c++ assembly int boolean