Top "Integer" questions

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

Determining if a variable is within range?

I need to write a loop that does something like: if i (1..10) do thing 1 elsif i (11..20) do thing 2 elsif i (21..30) …

ruby integer conditional range
How to handle very large numbers in Java without using java.math.BigInteger

How would I go about doing arithmetic, + - / * % !, with arbitrarily large integers without using java.math.BigInteger? For instance, the …

java math biginteger integer
SQLite3 Integer Max Value

what is the maximum value of data type INTEGER in sqlite3 ? How do you store ip address in database ? What …

sql sqlite integer ip
Long Vs. Int C/C++ - What's The Point?

As I've learned recently, a long in C/C++ is the same length as an int. To put it simply, …

c++ c integer long-integer
Using int vs Integer

I came across a class using Integer variables to capture size to be used in a for loop. Is this …

java integer int primitive
C++ handling very large integers

I am using the RSA Algorithm for encryption/decryption, and in order to decrypt the files you have to deal …

c++ rsa biginteger integer
Finding factors of a given integer

I have something like this down: int f = 120; for(int ff = 1; ff <= f; ff++){ while (f % ff != 0){ } Is there …

java for-loop integer while-loop factors
Parsing a Hexadecimal String to an Integer throws a NumberFormatException?

So, In Java, you know how you can declare integers like this: int hex = 0x00ff00; I thought that you …

java integer parseint hex
How to convert NSTimeInterval to int?

How do I convert NSTimeInterval into an Integer value? My TimeInterval holds the value 83.01837. I need to convert it into 83. …

iphone ios integer nstimeinterval
How can I use JavaScript to limit a number between a min/max value?

I want to limit a number between two values, I know that in PHP you can do this: $number = min(…

javascript numbers integer