Kernel.trunc

You're seeing just the function trunc, go back to Kernel module for more information.

Specs

trunc(number()) :: integer()

Returns the integer part of number.

Allowed in guard tests. Inlined by the compiler.

Examples

iex> trunc(5.4)
5

iex> trunc(-5.99)
-5

iex> trunc(-5)
-5