📜 ⬆️ ⬇️

The most popular phone number in the world: 214-748-3647

2147483647 (2 31 -1), the Mersenne number is the maximum possible value for a 32-bit signed integer, that is, the largest integer that can be written in 32 bits.

What does this have to do with phone numbers? Oddly enough, the most direct. It turns out that a considerable number of American programmers, in order to optimize, develop systems where phone numbers on the server are stored as 32-bit integers. Thus, the highest possible phone number in the US is (214) 748-3647, where 214 is the Dallas code. When entering into the database of a larger number, the maximum possible number is 2147483647.

If you search the Internet , you can find hundreds of telephone directories from different parts of America, which mention the same number in Dallas. The owner of this phone can only sympathize.

How could the project customers not notice such a mistake on the part of the developers? Probably, many of them did business in a region where the code is less than 214, so that other telephone numbers simply did not fall into their base. Perhaps, the developers were convinced that this is the best way to optimize: in this form, the numbers take up less space than when stored as separate characters. Many in fact are fixated on optimization. And the lessons of Y2K did not go away for everyone, especially now a new generation of programmers has grown up who don’t remember anything about Y2K.
')
via Computerworld

Source: https://habr.com/ru/post/113435/


All Articles