Top "Integer" questions

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

Convert boolean result into number/integer

I have a variable that stores false or true, but I need 0 or 1 instead, respectively. How can I do this?

javascript numbers integer boolean type-conversion
How to concatenate int values in java?

I have the following values: int a=1; int b=0; int c=2; int d=2; int e=1; How do i concatenate these …

java integer concatenation string-concatenation
How does Python manage int and long?

Does anybody know how Python manage internally int and long types? Does it choose the right type dynamically? What is …

python integer
Finding the length of an integer in C

I would like to know how I can find the length of an integer in C. For instance: 1 => 1 25 => 2 12512 =&…

c integer digit
Large Numbers in Java

How would I go about doing calculations with extremely large numbers in Java? I have tried long but that maxes …

java numbers integer biginteger
How to convert signed to unsigned integer in python

Let's say I have this number i = -6884376. How do I refer to it as to an unsigned variable? Something …

python integer unsigned signed
Increment a Integer's int value?

How do I increment a Integer's value in Java? I know I can get the value with intValue, and I …

java class integer int
How to do an Integer.parseInt() for a decimal number?

The Java code is as follows: String s = "0.01"; int i = Integer.parseInt(s); However this is throwing a NumberFormatException... What …

java parsing integer
Split an integer into digits to compute an ISBN checksum

I'm writing a program which calculates the check digit of an ISBN number. I have to read the user's input (…

python integer decimal
Converting List<Integer> to List<String>

I have a list of integers, List<Integer> and I'd like to convert all the integer objects into …

java string collections integer