返回题库

Quant Interview Practice Questions

专题
Code Analysis
难度
L1
来源
MyntBit

题目详情

A high-frequency trading system processes millions of currency transactions daily. Accuracy is paramount to avoid accumulating small errors that could lead to significant financial losses. Consider a Python implementation for handling these currency calculations. Why might a trading system choose to use Python's decimal.Decimal data type instead of the built-in float data type for representing currency values?