Top "Integer" questions

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

How do I generate random integers within a specific range in Java?

How do I generate a random int value in a specific range? I have tried the following, but those do …

java random integer
How do I parse a string to a float or int?

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to …

python parsing floating-point type-conversion integer
Converting integer to string in Python

I want to convert an integer to a string in Python. I am typecasting it in vain: d = 15 d.str() …

python string integer
Generate random integers between 0 and 9

How can I generate random integers between 0 and 9 (inclusive) in Python? For example, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

python random integer
How to convert strings into integers in Python?

I have a tuple of tuples from a MySQL query like this: T1 = (('13', '17', '18', '21…

python string integer
What is the maximum value for an int32?

I can never remember the number. I need a memory rule.

Generating random whole numbers in JavaScript in a specific range?

How can I generate random whole numbers between two specified variables in JavaScript, e.g. x = 4 and y = 8 would output …

javascript random integer
How to print a number with commas as thousands separators in JavaScript

I am trying to print an integer in JavaScript with commas as thousands separators. For example, I want to show …

javascript formatting numbers integer
Converting an integer to a string in PHP

Is there a way to convert an integer to a string in PHP?

php string casting type-conversion integer