About 6,670,000 results
Open links in new tab
  1. Why does dividing two int not yield the right value when assigned to ...

    7 c is a double variable, but the value being assigned to it is an int value because it results from the division of two int s, which gives you "integer division" (dropping the remainder). So what happens in …

  2. Better way to cast object to int - Stack Overflow

    This is probably trivial, but I can't think of a better way to do it. I have a COM object that returns a variant which becomes an object in C#. The only way I can get this into an int is int test...

  3. Can an int be null in Java? - Stack Overflow

    In Java, int is a primitive type and it is not considered an object. Only objects can have a null value. So the answer to your question is no, it can't be null. But it's not that simple, because there are objects …

  4. python - Check if a number is int or float - Stack Overflow

    Notice that Python 2 has both types int and long, while Python 3 has only type int. Source. If you want to check whether your number is a float that represents an int, do this

  5. How do I generate a random integer in C#? - Stack Overflow

    How do I generate a random integer in C#?Random rnd = new Random(); int month = rnd.Next(1, 13); // creates a number between 1 and 12 int dice = rnd.Next(1, 7); // creates a number between 1 and 6 …

  6. c++ - What does int & mean - Stack Overflow

    A C++ question, I know int* foo (void) foo will return a pointer to int type how about int &foo (void) what does it return? Thank a lot!

  7. Convert all strings in a list to integers - Stack Overflow

    b.append(int(i)) #Look below for explanation print(b) Here, append () is used to add items ( i.e integer version of string (i) in this program ) to the end of the list (b). Note: int () is a function that helps to …

  8. Difference between int vs Int32 in C# - Stack Overflow

    In C#, int and Int32 appear to be the same thing, but I've read a number of times that int is preferred over Int32 with no reason given. Are the two really the same? Is there a reason where one sho...

  9. What is the difference between Integer and int in Java?

    int is a primitive data type while Integer is a Reference or Wrapper Type (Class) in Java. after java 1.5 which introduce the concept of autoboxing and unboxing you can initialize both int or Integer like this.

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

    203 With Java 8 they introduced the method ints(int randomNumberOrigin, int randomNumberBound) in the Random class. For example if you want to generate five random integers (or a single one) in the …