Top "Integer" questions

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

Check if the number is integer

I was surprised to learn that R doesn't come with a handy function to check if the number is integer. …

r integer rounding
What's the maximum value for an int in PHP?

Ignoring the special libraries that allow you to work with very big numbers, what's the largest int value you can …

php integer
How to convert an IPv4 address into a integer in C#?

I'm looking for a function that will convert a standard IPv4 address into an Integer. Bonus points available for a …

c# integer ip ipv4
Definition of int64_t

I am new to C/C++, so I have a couple of questions about a basic type: a) Can you …

c++ c integer long-integer
Converting binary to decimal integer output

I need to convert a binary input into a decimal integer. I know how to go from a decimal to …

python python-2.7 binary integer base-conversion
What do numbers using 0x notation mean?

What does a 0x prefix on a number mean? const int shared_segment_size = 0x6400; It's from a C program. …

c integer hex notation
How to catch integer(0)?

Let's say we have a statement that produces integer(0), e.g. a <- which(1:3 == 5) What is the safest way …

r error-handling integer try-catch
Why doesn't Java support unsigned ints?

Why doesn't Java include support for unsigned integers? It seems to me to be an odd omission, given that they …

java language-design unsigned integer
Test if string is a number in Ruby on Rails

I have the following in my application controller: def is_number?(object) true if Float(object) rescue false end and …

ruby-on-rails ruby string integer
What does value & 0xff do in Java?

I have the following Java code: byte value = 0xfe; // corresponds to -2 (signed) and 254 (unsigned) int result = value & 0xff; …

java integer byte bitwise-and