Top "Int" questions

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

How can I read inputs as numbers?

Why are x and y strings instead of ints in the below code? (Note: in Python 2.x use raw_input(). …

python python-3.x python-2.7 input int
Determine if a String is an Integer in Java

I'm trying to determine if a particular item in an Array of strings is an integer or not. I am .…

java string int
What is size_t in C?

I am getting confused with size_t in C. I know that it is returned by the sizeof operator. But …

c int size-t
How can I prevent java.lang.NumberFormatException: For input string: "N/A"?

While running my code I am getting a NumberFormatException: java.lang.NumberFormatException: For input string: "N/A" at java.lang.…

java string int numberformatexception
How to convert float to int with Java

I used the following line to convert float to int, but it's not as accurate as I'd like: float a=8.61…

java floating-point int
How to concatenate a std::string and an int?

I thought this would be really simple but it's presenting some difficulties. If I have std::string name = "John"; int …

c++ int concatenation stdstring
Convert int to char in java

Below is a code snippet, int a = 1; char b = (char) a; System.out.println(b); But what I get is …

java char int
How do I convert from int to Long in Java?

I keep finding both on here and Google people having troubles going from long to int and not the other …

java casting int long-integer
How to convert an int to a hex string?

I want to take an integer (that will be <= 255), to a hex string representation e.g.: I want to …

python string hex int
Is the size of C "int" 2 bytes or 4 bytes?

Does an Integer variable in C occupy 2 bytes or 4 bytes? What are the factors that it depends on? Most of …

c int byte