Is there a size limit for Erlang integers?

I know that Erlang has arbitrary dimensional numbers, but is there a maximum limit on one of the standard implementations? If yes, then?

+6
source share
2 answers

Erlang uses bignum arithmetic , and integers in Erlang are limited by the available memory on the machine. In fact, there is no limit to how big Integer is in Erlang. Take a look at this document: http://erlang.org/doc/efficiency_guide/advanced.html It contains more detailed explanations regarding the limits.

+8
source

On 32-bit architectures: -134217729 < i < 134217728 (28 bits).

In 64-bit architectures: -576460752303423489 < i < 576460752303423488 (60 bits).

0
source

All Articles