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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Decimal Floating Point

  • Ronald T. Kneusel

摘要

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.