Feb
26
2008
Over 2^32 Sold! (Nearly)
CUPERTINO, California—February 26, 2008—Apple® today announced that iTunes® (www.itunes.com) is now the number two music retailer in the US, behind only Wal-Mart, based on the latest data from the NPD Group*. Apple also announced that there are now over 50 million iTunes Store customers. iTunes has sold over four billion songs, …
I really hope they thought ahead and used a 64-bit int for the number_of_songs_sold variable, otherwise some Bad Stuff might happen in the next few months.
(We already know they used an unsigned int, otherwise there would have been a crazy press release a few years ago like “Apple announces iTunes has sold over -2,147,483,648 songs”.)
February 28th, 2008 at 11:25 AM
Numbers are fun.
March 9th, 2008 at 1:58 PM
unless it was a signed 64-bit int… we’ve got a long while to wait before Apple announces selling -9,223,372,036,854,775,808 songs, I imagine.