[erlang-questions] Where is fmod in Erlang?

Pierpaolo Bernardi <>
Fri Oct 21 05:42:19 CEST 2016


On Fri, Oct 21, 2016 at 5:09 AM, Zhongzheng Liu
<> wrote:
> Hi mail-list:
>
> How to calculate fmod in Erlang ?

fmod(a, b) ->
    a - trunc(a/b) * b.


More information about the erlang-questions mailing list