How can I use arbitrary length integers in Perl? -


Is there a standard way of using arbitrary length integers in Perl? I am working on code which prepares the X64 assembly for testing, and I am tired of teasing 32 bit at a time.

I'm using Perl 5.10.0, what's the cost.

If you want to use only the bigger integer, then you bigint You can use, which you can scope of a file:

  Usage bilint;  

or just a limited area:

  {use built; ...; }  

If you need large floating point numbers as well as large integers, you can use the bignum pragma in the same way. Either way, this will slow down your program (or if you are doing so many maths then it is important), then you should use them for the parts where you really need them though, better than the right one If you want very precise control, which numbers use the big * math, then you can use those built-in classes that are not Applicable Instead of making your own words, look to big * to do everything that math :: Big * module.

I talk about this in the benchmarking chapter because the computer is fast nowadays to use as a slow function, and we added a section to it in large numbers in the coming days.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -