You are developing a high-frequency trading system where performance is critical. Which data type should be chosen to store price data to ensure both performance and precision? 

  • int 
  • double 
  • char 
  • long double
In high-frequency trading, price data often requires floating-point precision due to fractional values. The double datatype strikes a balance between precision and performance. While long double offers more precision, it can be slower and is overkill for most financial data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *