<div dir="ltr">On Tue, Aug 26, 2008 at 8:56 AM, Imre Palik <span dir="ltr"><<a href="mailto:imre@u-tx.com">imre@u-tx.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
But if I decrease the size of HN to let's say 100 digits, then it works without any problem.<br>
Could somebody tell me the limitations that I have with integers in erlang? Is it possible to tune these somehow (config file, environment variable, etc.)?<br>
</blockquote><div><br>The problem is not integer limits, but floating point limits.<br><br>random:uniform(N) first generates a floating point number between 0 and 1, then multiplies it by N. The result is too big to be represented<br>
as a floating point number.<br><br>/Bjorn<br></div></div><br>-- <br>Björn Gustavsson, Erlang/OTP, Ericsson AB<br>
</div>