Top "Integer" questions

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

How to find length of digits in an integer?

In Python, how do you find the number of digits in an integer?

python count integer
How to properly compare two Integers in Java?

I know that if you compare a boxed primitive Integer with a constant such as: Integer a = 4; if (a < 5) …

java integer autoboxing
How do you check whether a number is divisible by another number (Python)?

I need to test whether each number from 1 to 1000 is a multiple of 3 or a multiple of 5. The way I …

python integer modulus
How do I check if an integer is even or odd?

How can I check if a given number is even or odd in C?

c integer
Java integer to byte array

I got an integer: 1695609641 when I use method: String hex = Integer.toHexString(1695609641); system.out.println(hex); gives: 6510f329 but I …

java arrays integer byte
Signed versus Unsigned Integers

Am I correct to say the difference between a signed and unsigned integer is: Unsigned can hold a larger positive …

language-agnostic integer unsigned signed
how to convert from int to char*?

The only way I know is: #include <sstream> #include <string.h> using namespace std; int main() { …

c++ integer const-char
Check if a number has a decimal place/is a whole number

I am looking for an easy way in JavaScript to check if a number has a decimal place in it (…

javascript validation numbers integer
What is the difference between tinyint, smallint, mediumint, bigint and int in MySQL?

What is the difference between tinyint, smallint, mediumint, bigint and int in MySQL? In what cases should these be used?

mysql integer
C++ convert hex string to signed integer

I want to convert a hex string to a 32 bit signed integer in C++. So, for example, I have the …

c++ integer hex signed