[erlang-questions] Math pow

Hasan Veldstra hasan.veldstra@REDACTED
Fri Apr 3 14:58:59 CEST 2009


On 3 Apr 2009, at 13:49PM, Kunthar wrote:

> New shell R13A:
>> random:uniform(math:pow(2, 48)).
> ** exception error: no function clause matching
> random:uniform(281474976710656.0)
>
> Old shell R12B:
>> random:uniform(math:pow(2, 48)).
> 44982915740374
>
> Any comments?

A guess – random:uniform does not accept floats anymore?

/Hasan


More information about the erlang-questions mailing list