Decimal Floating Point
摘要
Decimal floating point uses base 10 instead of base 2 to represent floating-point numbers. This chapter examines how IEEE 754 decimal floating-point numbers are stored. We then contemplate a C language software implementation of decimal floating point conforming to the IEEE standard and give some examples of its use. We follow this with examples using the Python decimal library and end with some thoughts on the utility of decimal floating point.