Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a size limit for Erlang integers?

Tags:

erlang

beam

I know that Erlang has arbitrary size integers, but is there a max limit on one of the standard implementations? If so, what?

like image 709
Filip Haglund Avatar asked Sep 01 '16 10:09

Filip Haglund


Video Answer


1 Answers

Erlang uses bignum arithmetic, and Integers in Erlang are limited by available memory on the machine. Virtually, there is no limit on how large an Integer can be in Erlang. Take a look on this document: http://erlang.org/doc/efficiency_guide/advanced.html It has more detailed explanations regarding limits.

like image 182
fycth Avatar answered Sep 28 '22 05:09

fycth