Integer part of a float

Luke Gorrie <>
Tue Feb 1 21:07:54 CET 2005


Kostis Sagonas <> writes:

> I am looking for a built-in function that returns the integer
> part of a (positive) float, something like floor/1, and although
> I've spent quite some time looking for this, I cannot find it,

trunc/1 ?





More information about the erlang-questions mailing list