About 261,000 results
Open links in new tab
  1. Built-in Types — Python 3.14.2 documentation

    1 day ago · Python fully supports mixed arithmetic: when a binary arithmetic operator has operands of different numeric types, the operand with the “narrower” type is widened to that of …

  2. Python int () Function - W3Schools

    Definition and Usage The int() function converts the specified value into an integer number.

  3. Python int () Function - GeeksforGeeks

    Sep 26, 2025 · The Python int () function converts a given object to an integer or converts a decimal (floating-point) number to its integer part by truncating the fractional part. Example: In …

  4. Python int () (With Examples) - Programiz

    In this tutorial, you will learn about the Python int () function with the help of examples.The int () method returns an integer object from any number or string.

  5. Python int(): Convert a String or a Number to an Integer

    In this tutorial, you'll learn how to use Python int() to convert a number or a string to an integer.

  6. int | Python’s Built-in Data Types – Real Python

    Reference Python’s Built-in Data Types / int The built-in int data type represents integer numbers, which are whole numbers without any decimal places. Integers can be positive, negative, or …

  7. Python int

    Python int - Integer is one of the basic built-in datatype in Python. int is the keyword for an integer in Python. In this tutorial, we learn: int initialization, print int to console, int range, int arithmetic …

  8. Python Numbers: int, float, complex (With Examples)

    Python supports three numeric types to represent numbers: integers, float, and complex number. Here you will learn about each number type.

  9. Python Integer: Non-Fractional Numbers (With Example Code)

    Sep 16, 2025 · The Python integer is a non-fractional number, like 1, 2, 45, -1, -2, and -100. It’s one of the three types of numbers Python supports natively, the others being floating-point …

  10. Python int () Function - Online Tutorials Library

    The Python int () function is used to convert a given value into an integer. It can convert various types of data, such as numeric strings or floating-point numbers, into integers. If the given …