Top "Int" questions

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

Range of values in C Int and Long 32 - 64 bits

I'm confused with range of values of Int variable in C. I know that a 32bits unsigned int have a …

c int 32bit-64bit
What range of values can integer types store in C++

Can unsigned long int hold a ten digits number (1,000,000,000 - 9,999,999,999) on a 32-bit computer? Additionally, what are the ranges of …

c++ int
Converting an int to std::string

What is the shortest way, preferably inline-able, to convert an int to a string? Answers using stl and boost will …

c++ string int
Rounding a double to turn it into an int (java)

Right now I'm trying this: int a = round(n); where n is a double but it's not working. What am …

java double int rounding
What is the difference between Integer and int in Java?

For example why can you do: int n = 9; But not: Integer n = 9; And you can do: Integer.parseInt("1"); But not: …

java class int
Java, Simplified check if int array contains int

Basically my mate has been saying that I could make my code shorter by using a different way of checking …

java arrays int contains
What is the difference between an int and an Integer in Java and C#?

I was reading More Joel on Software when I came across Joel Spolsky saying something about a particular type of …

c# java integer int
How to convert ‘false’ to 0 and ‘true’ to 1 in Python

Is there a way to convert true of type unicode to 1 and false of type unicode to 0 (in Python)? For …

python string int
"int cannot be dereferenced" in Java

I'm fairly new to Java and I'm using BlueJ. I keep getting this "Int cannot be dereferenced" error when trying …

java int bluej
How can I divide two integers to get a double?

How do I divide two integers to get a double?

c# math int double