What is the output of print(type(3.14))?
Answer
<class 'float'>
Answer
<class 'float'>
The output of print(type(3.14)) is <class 'float'>.
In Python, a number written with a decimal point is normally represented by the built-in float type. The type() function reports the class of an object, and print() displays that class using Python’s standard representation, producing <class 'float'>. The angle-bracket form is not a value you would normally assign; it is the interpreter’s description of the object’s type.
Python does not use double as the name of its ordinary floating-point type, even though many implementations store float values using a format comparable to a C or Java double. That implementation detail affects precision, but the Python-level type remains float. A quoted value such as "3.14" would instead be a str, while the whole number 3 would be an int.
Binary floating-point also brings an important neighbouring fact: many decimal fractions cannot be represented exactly in binary. Thus 3.14 is stored as the nearest representable floating-point approximation. This usually remains invisible when printing the value, but it can matter in equality tests and financial calculations, where decimal or integer-based techniques may be preferable.
Source: Wikipedia · fact-checked Aug. 2026