You are here : python_3mathmathtrunc

math.trunc() - math

Return the Real value x truncated to an
Integral (usually an integer). Delegates to
x.__trunc__().


Syntax

math.trunc(x)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference