-->

Saturday, May 8, 2021

Nasdaq code burst into flames after Berkshire Hathaway reached new eye-watering share price

Earlier this week the share price of the investment group Berkshire Hathaway rose so high that it broke the code of the Nasdaq stock exchange.

As reported by The Register, Nasdaq uses 32-bit unsigned integers as opposed to 64-bit unsigned integers for stocks listed on its exchange. Normally this wouldn't be a problem but because the investment group, run by Warren Buffett, is so highly valued its BRK.A stock exceeded the maximum value of a 32-bit variable which is 4,294,967,295 in decimal.

At the time of writing, one share of BRK.A stock is currently valued at over $437k per share. The stock is also listed on the New York Stock Exchange but unlike Nasdaq, it was unaffected by the bug.

Breaking Nasdaq's code

Following BRK.A's recent increase in price, the Nasdaq exchange stopped transmitting information about the stock on both its website and in the feeds of brokers and other financial organizations. Instead, the website for the stock displayed a message which read “Data is currently not available”.

As Nasdaq doesn't store stock prices using a floating-point number format likely due to the fact that they can be approximate, the exchange multiply quotes by 10,000 and stores them as 32-bit unsigned integers. In this case the value 123,456 represents a stock price of $12.3456.

BRK.A's current price of $437,131.0000 would be stored as 4,371,310,000 and this exceeds the maximum of  4,294,967,295 and for this reason, it would overflow to a value far lower than the actual stock price as it would wrap around from the maximum to zero and then go past zero to  43,713,100 or $4,713.100.

If Nasdaq had broadcast this price online, there would be utter pandemonium as investors would think the stock lost over $400k in value while consumers would believe that they could pick up shares of one of the world's highest valued stocks at a bargain price.

According to Nasdaq, the exchange has said that the issue will be fixed by May 17 but the fact that Berkshire Hathway's stock price broke it's code is still quite interesting nonetheless. 



from TechRadar - All the latest technology news https://ift.tt/3hbvoe0
NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post
NEXT ARTICLE Next Post
PREVIOUS ARTICLE Previous Post
 

Sports

Delivered by FeedBurner