[erlang-questions] casting float to integer

Nitin Verma nitin.matrix@REDACTED
Sat May 12 02:08:37 CEST 2007


Hi All,

I am looking for a function/BIF that can help me.

Problem: I need a float number's floored integer. That is if:
A = f(5/2), then A = 2 and
A = f(1000/501), then A = 1

I found 'round/1' but it just rounds-off .

-- Nitin



More information about the erlang-questions mailing list