How to get minimum and maximum value of each type in elixir -
How to get the minimum and maximum value of each type in nectar? For example, the maximum possible length of an integer, float, and string.
I know that in C in limits.h in INT_MIN , INT_MAX and so on. Where in the nectar documents about those types of limitation? Alkiser uses (in real life), which is used in a type of arithmetic computer science (where citing Wikipedia)
)
is calculated on the count numbers whose accuracy points are limited by the available memory of the host system
Aralong is in the docks that talks about the negotiations of the Erlang VM (e.g., atoms Can be up to 255 characters); As you can see that you take a look at that page, the boundaries of integers are not even mentioned.
Integers in the Erlang / Alixir are limited only by memory available on the system, so for virtually
binary (strings), I will only quote that the page Added, he says:
In Erlang's 32-bit implementation, 536870 911 bytes is the largest binary that can be created or matched using bit syntax. (In the 64-bit implementation, the maximum size is 2305843009213693951 bytes.) If the limit is exceeded, the creation of bit syntax will fail with a system_limit exception, while any attempt to match the binary will fail. This limit has been started with the R-11B-4 release; In earlier releases, the operation of very large binaries fails normally or gives false results. In the future release of Erlang / OTP, other operations that make binaries (such as list_to_binary / 1) will probably implement the same range.
Comments
Post a Comment