[erlang-questions] A math module better than C89

Richard A. O'Keefe ok@REDACTED
Fri Jan 20 00:30:26 CET 2017

On 20/01/17 7:00 AM, Michael Truog wrote:

> We do have floor/ceil now (from https://github.com/erlang/otp/pull/1145)
> when the source code is released in Erlang/OTP 20.0 and these functions
> are guard functions, though that means they both exist in the erlang
> module, not the math module.

That is good to hear.

As a minor documentation issue, because there will be people exposed to
C or Java who expect functions called round, trunc, floor, ceil to be
in the same place as sqrt and acosh, it would be helpful if the
manual page for the math module mentioned these functions, maybe at the
end, and said where to really find them.  I'm not talking about
repeating their descriptions, just pointing to them.

More information about the erlang-questions mailing list