Other than John's answer, you could also make one of the variable float, and the result will yield float.

``````>>> 144 / 314.0
0.4585987261146497
``````

### Built-in Types — Python 3.9.5 documentation

https://docs.python.org/3/library/stdtypes.html

Unadorned integer literals (including hex, octal and binary numbers) yield integers. Numeric literals containing a decimal point or an exponent sign yield floating ...

### How to convert int to float in python? - Stack Overflow

https://stackoverflow.com/questions/33944111/how-to-convert-int-to-float-in-python

Other than John's answer, you could also make one of the variable float, and the result will yield float. >>> 144 / 314.0 0.4585987261146497.

### Built-in Functions — Python 3.9.5 documentation

https://docs.python.org/3/library/functions.html

If x is not a Python int object, it has to define an __index__() method that returns ... The bool class is a subclass of int (see Numeric Types — int, float, complex).

### “How To Convert Data Types” in “How To Code in Python 3” on ...

Converting Floats to Integers. Python also has a built-in function to convert floats to integers: int() . The ...

### Basic Data Types in Python – Real Python

https://realpython.com/python-data-types/

Integers; Floating-Point Numbers; Complex Numbers; Strings ... The underlying type of a Python integer, irrespective of the base used to specify it, is called int :.

### Python Numbers, Type Conversion and Mathematics

https://www.programiz.com/python-programming/numbers

Number Data Type in Python. Python supports integers, floating-point numbers and complex numbers. They are defined as int , float , and complex ...

### Python - Numbers - Tutorialspoint

https://www.tutorialspoint.com/python/python_numbers.htm

Type int(x) to convert x to a plain integer. · Type long(x) to convert x to a long integer. · Type float(x) to convert x to a floating-point number. · Type complex(x) to  ...

### How to convert Float to Int in Python? - GeeksforGeeks

https://www.geeksforgeeks.org/how-to-convert-float-to-int-in-python/

Aug 18, 2020 ... A float value can be converted to an int value no larger than the input by using the math.floor() function, whereas it can also be converted to an int ...

### Integer and float numbers - Learn Python 3 - Snakify

https://snakify.org/lessons/integer_float_numbers/

Floating-point numbers. When we read an integer value, we read a line with input () and then cast a string to integer using int() ...

### Python Numbers: int, float, complex

https://www.tutorialsteacher.com/python/python-number-type

Learn how to work with numbers in Python. Python includes three numeric types to represent numbers: integer, float, and complex.