Posted by brian d foy on June 17, 2015
You can specify literal hexadecimal floating-point numbers in v5.22, just as you can in C99, Java, Ruby, and other languages do. Perl, which uses doubles to store floating-point numbers, can represent a limited set of values. Up to now, you’ve had to specify those floating point numbers in decimal, hoping that a double could exactly […]
Posted by brian d foy on June 11, 2014
Prior to v5.20, perl used whatever random number generator the system provided. This meant that the same program could have statistically different results based on the quality of that function. The rand() for Windows had a max of 32,768 (15 bits), while POSIX has drand48 (48 bits). This sort of numerical un-portability has always been […]
Posted by brian d foy on September 27, 2010
This Item was suggested by Shawn Corey as part of our Free eBook give-away. He’s our September winner!