About 50 results
Open links in new tab
  1. How to explain the int() function to a beginner - Stack Overflow

    Oct 25, 2017 · The third use case, "convert the string representation of a floating point number to an int " is not covered by the spec, because the language designers decided not to cover it. Which seems …

  2. python int ( ) function - Stack Overflow

    Aug 19, 2012 · Integers (int for short) are the numbers you count with 0, 1, 2, 3 ... and their negative counterparts ... -3, -2, -1 the ones without the decimal part. So once you introduce a decimal point, …

  3. Can you explain how int function(int()) works in Python?

    Feb 6, 2025 · Hello I just have a question about int function. It convert data(for example, string) to int data. My question is how this function works like this? I tried to implement int function myself without...

  4. 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!

  5. What does base value do in int function? - Stack Overflow

    Apr 21, 2014 · The int() function can convert an integer in a base (or radix) other than 10 passed as a string, where the second parameter is the base of the number in the string, and the result will be an …

  6. c - The difference between int (*function) (int,int) and int*function ...

    Nov 17, 2013 · int * is the return type in the second one (Pointer to int).. The first is pointer to a function that receives two int s and return an int.

  7. Checking whether a variable is an integer or not [duplicate]

    Aug 17, 2010 · First check if it's an int (or a long), then check if it's a float and, if it is, check if is_integer() is true. Notice that there is no long type in Python 3.

  8. Python: is 'int' a type or a function? - Stack Overflow

    16 int is a class. The type of a class is usually type. And yes, almost all classes can be called like functions. You create what's called an instance which is an object that behaves as you defined in the …

  9. python difference between round and int - Stack Overflow

    Apr 27, 2017 · For the sake of completeness, let me add two more functions to your question and explain the differences between float(int(x)), math.floor(x), round(x) and math.ceil(x).

  10. Call int() function on every list element? - Stack Overflow

    Call int () function on every list element? [duplicate] Asked 15 years, 7 months ago Modified 4 years, 3 months ago Viewed 391k times